The short version
- A hero section is the first full screen of a website, and it should say what the product is, who it is for and what to do next.
- The core parts are a headline, a supporting line, one primary call to action and a visual that shows the product or sets the mood.
- Specific headlines that name an outcome work better than slogans that could belong to any company.
- A hero needs one main action; a second, quieter link is fine, but more choices dilute it.
- Design the phone version on purpose, because many visitors see the hero first on a narrow screen.
On this page
Good hero section design answers three questions before anyone scrolls: what is this, is it for me, and what do I do next. The hero is the first screen of your site, usually a headline, one supporting sentence, a single main button and a visual. Everything else (logos, badges, a second button, a carousel) has to justify the space it takes from those four. This guide covers the words, the layout and the build; for the background alone, see website hero backgrounds.
What goes in a hero section
Job
Typical length
Typical length
Job
Typical length
Job
Typical length
Job
Typical length
Typical length
Writing the hero headline
The headline is the hardest sentence on your site. Clever slogans fail because they could belong to anyone. A good one names who it is for, what they get, or the problem it removes, in words your customers actually use. Read it aloud next to a competitor's homepage: if you could swap them without anyone noticing, it is not specific enough.
Specific
Specific
Specific
Specific
Specific
Keep the supporting line for the how or the proof, not a restatement. For more on wording, writing copy for visuals and visual hierarchy help.
Three hero layouts that work
- Centred. Headline, line and button stacked in the middle over a background. Strong for brands, launches and products that are a feeling more than a screen.
- Split. Words on the left, product image or screenshot on the right. Best when seeing the product is the argument: apps, physical goods, food.
- Full bleed image or video. A photo or loop fills the screen with words over a calm area. Suits hotels, restaurants, events and portfolios, if legibility is handled properly.
Centred: the words carry it, the background sets the mood.
Split: words on one side, room on the other for a product screenshot.
The call to action
One primary button, visually the strongest element after the headline. Label it with what happens next, not a generic verb: "Start a free trial", "Book a table", "See the menu". If you add a secondary option, make it a quieter text link so the two never compete.
Avoid
- Three buttons of equal weight
- "Submit", "Learn more" or "Click here"
- A button the same colour as the background
- The button below the fold on a phone
- An autoplaying carousel of different messages
Do
- One button, one quieter link
- A label that says what happens next
- A button colour used nowhere else on the screen
- Headline and button visible on a 390 px wide phone
- One message, said well
Hero backgrounds and legibility
The background is half the impression and the most common reason a hero fails. Busy photos and bright gradients fight the headline, and a dark overlay on everything flattens the mood. Plan a calm area behind the words, keep the busiest detail away from them, and check contrast at every screen width, because the area behind the text moves as the layout reflows.
This is where a Gradiently Mark is useful: its calmest, best contrasting region moves behind your words and the type colour is chosen from its own palette, so the headline reads at 1920×1080 and on a phone without a box or a shadow. For CSS approaches, see gradient overlay and text on a gradient.
Designing the hero for phones
On a phone the hero is narrow and tall, so split layouts stack and full bleed images crop hard. Decide what the phone shows rather than letting it happen: the headline and button should be visible without scrolling, the visual can move below or shrink.
Desktop 1920×1080
1920 × 1080
Laptop 1440×900
1440 × 900
Phone 390×844
390 × 844
.hero {
min-height: min(100svh, 56rem);
display: grid;
place-items: center;
padding: clamp(1.5rem, 5vw, 4rem);
text-align: center;
}
.hero h1 {
font-size: clamp(2.25rem, 6vw, 4.5rem);
line-height: 1.05;
max-width: 18ch;
text-wrap: balance;
}
.hero p {
max-width: 40ch;
margin-inline: auto;
}svh sizes to the visible phone screen, clamp() scales type between phone and desktop, and text-wrap: balance evens out the headline's lines.A hero section checklist
- 1
Write the headline first
Before choosing images, write five headlines and pick the most specific. The layout follows the words.
- 2
Cut to one action
Pick the single next step you want most visitors to take, and make it the only button.
- 3
Choose a visual that proves or sets the mood
A screenshot, a product photo or a background that carries the brand. Not a stock photo of people pointing at laptops.
- 4
Check legibility everywhere
Resize the browser from wide to narrow and watch the text against the background the whole way.
- 5
Keep it fast
The hero image is often the largest thing on the page. Size it properly and serve WebP or AVIF.
The hero opens the page; the rest of the page has to keep the promise. Landing page design covers the sections that follow.
Questions people ask
What is a hero section on a website?
The first full screen of a page, above the fold. It usually holds a headline, a supporting line, a main button and a visual.
What should a hero section headline say?
What the product does and for whom, in the customer's own words. Specific outcomes beat broad slogans.
How many buttons should a hero section have?
One primary button. A second, quieter text link for a lower commitment option is fine, but more choices weaken the main one.
What size should a hero image be?
Design at 1920×1080 for desktop and provide smaller versions for phones through srcset, so mobile visitors download a lighter file.
Should a hero section fill the whole screen?
Not necessarily. A full screen hero suits brand led sites; product sites often benefit from a shorter hero that hints at content below.
Written by Gradiently
The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.
See our profile