Market
Pricing
Sign inStart
Field GuideCSS and web
CSS and web

Hero section design: the first screen of your website

Visitors decide whether to stay before they scroll. The hero is where they decide, so every word and pixel in it should earn its place.

GradientlyVerified Gradiently account·October 1, 2026·5 min read
Cover: Analog Pause · GR·X785·SW

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
What goes in a hero sectionWriting the hero headlineThree hero layouts that workThe call to actionHero backgrounds and legibilityDesigning the hero for phonesA hero section checklist

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

Eyebrow (optional)

Job

Context or a category: "For independent cafés"

Typical length

2 to 5 words
HeadlineThe promise, in the reader's words

Typical length

4 to 10 words
Supporting line

Job

How it works or what makes it different

Typical length

One sentence, 15 to 25 words
Primary button

Job

The one next step

Typical length

2 to 4 words
Secondary link (optional)

Job

A lower commitment path: "See how it works"

Typical length

2 to 4 words
VisualShow the product, the result or the feeling

Typical length

One image, video loop or background
PartJobTypical length
Eyebrow (optional)Context or a category: "For independent cafés"2 to 5 words
HeadlineThe promise, in the reader's words4 to 10 words
Supporting lineHow it works or what makes it differentOne sentence, 15 to 25 words
Primary buttonThe one next step2 to 4 words
Secondary link (optional)A lower commitment path: "See how it works"2 to 4 words
VisualShow the product, the result or the feelingOne image, video loop or background
If a part doesn't help the visitor decide whether to stay, it belongs further down the page.

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.

Empowering your growth

Specific

Bookkeeping for freelancers, done every Friday
The future of coffee

Specific

Single origin beans, roasted on Monday, at your door by Thursday
Design made simple

Specific

Social posts that look like your brand, in every size
Your wellness journey starts here

Specific

Small group Pilates in Leeds, six people per class
Innovative solutions for modern teams

Specific

Shared calendars for clinics that hate double bookings
VagueSpecific
Empowering your growthBookkeeping for freelancers, done every Friday
The future of coffeeSingle origin beans, roasted on Monday, at your door by Thursday
Design made simpleSocial posts that look like your brand, in every size
Your wellness journey starts hereSmall group Pilates in Leeds, six people per class
Innovative solutions for modern teamsShared calendars for clinics that hate double bookings
The specific versions are longer, and that is fine. Clarity beats brevity in a headline.

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.
Northside Coffee
Small batch, roasted Monday.
Fresh beans at your door by Thursday
Gradiently · @gradiently

Centred: the words carry it, the background sets the mood.

For physio clinics
Clinic calendars, no clashes.
Shared booking for every room and therapist
Gradiently · @gradiently

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

The same hero at three common viewport sizes. What fits beside the headline on desktop has to go above or below it on a phone.
css
.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. 1

    Write the headline first

    Before choosing images, write five headlines and pick the most specific. The layout follows the words.

  2. 2

    Cut to one action

    Pick the single next step you want most visitors to take, and make it the only button.

  3. 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. 4

    Check legibility everywhere

    Resize the browser from wide to narrow and watch the text against the background the whole way.

  5. 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.

Ask the Designer

Describe what you need and Gradiently’s AI makes it, on your Mark.

Try the Designer

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.

Share this guide

Written by GradientlyVerified Gradiently account

The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.

See our profile

On this page

What goes in a hero sectionWriting the hero headlineThree hero layouts that workThe call to actionHero backgrounds and legibilityDesigning the hero for phonesA hero section checklist

Share this guide

Next in CSS and web

Landing page design: structure for pages that convert

Keep reading

All CSS and web guides
Backgrounds

Website hero background: gradients that look rich and load fast

5 min read

The hero is where a site makes its first impression, and where it most often gets slow. A gradient hero can be both the richest and the lightest thing on the page, if you build it the right way.

CSS and web

Landing page design: structure for pages that convert

6 min read

A landing page is a single argument with a single ending. Here is the order to make that argument in, a worked example you can copy, and the design decisions that keep people moving down the page.

AI and design

Social media copywriting for visuals: short lines that land

5 min read

The words on a post get about as long as a glance. Here is how to write lines that survive a thumbnail, with and without AI's help.

Find the look that’s only yours.

Every Mark is a living background with one owner. Try an unclaimed Mark, and claim yours when it feels right.

Start designing

Check a certificate

Type a certificate number or a Mark’s code to see who owns it.

Works with ChatGPT and Claude

Ask your AI for a design. It makes it in your Mark, ready to edit.

ChatGPTClaude
How to connect

Product

  • Market
  • Explore
  • Pricing
  • Certificates

Learn

  • Field Guide
  • Help centre
  • What’s new

Developers

  • Overview
  • ChatGPT and Claude
  • API reference
  • API keys

Company

  • About
  • Contact us
  • Sign in

Legal

  • Terms
  • Privacy
  • Refunds
  • Mark protection
  • Cookies
  • All policies
Move through the letters. Each one wears a real Mark.Touch a letter to see its Mark.One name. Ten Marks inside it.
© 2026 Gradiently