Fixed-price website design from £2,400View Prices

Hero Section Design: What to Put at the Top of Your Home Page

The large opening section of a web page: what it has to say, how to lay it out and how to stop a beautiful hero slowing the whole site.

Pages and Components guide. 6 minute read. Updated .

In short

  • A hero section is the large area at the top of a page that introduces the business and its main message.
  • It has to answer three questions at once: what is this, is it for me and what do I do next.
  • The essentials are a headline, a supporting line, one call to action and an image that adds meaning.
  • The hero image is usually the largest thing the page loads, so it has more effect on speed than anything else.
  • Skip the carousel. One strong message does better than five rotating ones.

The hero section is the first thing a visitor sees: the wide band at the top of a page with a headline, a sentence or two, a button and usually a large image. The name comes from print and advertising, where the hero image is the main picture a layout is built around.

It is the most valuable part of a website and the most argued over. Everyone in a business wants their message in it. A good hero resists that pressure and does one thing: it tells the right visitor that they have come to the right place, and shows them the next step.

What a Hero Section Has to Do

A new visitor arrives with three questions and very little patience.

  1. What is this? What does the business do or sell?
  2. Is it for me? Does it serve people like me, in my area or my situation?
  3. What do I do next? Where do I click to book, buy, call or find out more?

If the hero answers all three, the visitor relaxes and reads on. If it answers none, as a slogan over an abstract photograph does, many will return to the search results and try the next site. This is the practical meaning of the advice about what goes above the fold.

The Parts of a Hero Section

PartWhat it doesGetting it right
HeadlineSays what you offer.Plain and specific. Name the service and, where it matters, the place or the customer.
Supporting lineAdds who it is for, or why to choose you.One or two sentences. Not a paragraph.
Call to actionGives the next step.One main button with a clear verb, and a second, quieter option at most.
Image or videoShows the product, the result or the people.Real and relevant. It should add meaning, not fill space.
Trust signalReassures.A review score, a client logo or an accreditation, kept small.
NavigationLets people who know what they want go straight there.Present, but not competing with the headline.

Writing the Headline

The headline carries most of the weight. The commonest mistake is to be clever when the visitor needs you to be clear.

VagueClear
Solutions that move you forwardAccountants for contractors and freelancers in Leeds
Welcome to our websiteEmergency plumbers covering Bristol, day and night
A passion for excellenceHandmade oak furniture, built to order in Yorkshire
Your partner in growthBookkeeping software for small building firms

A useful formula is what you do, for whom, and what makes it worth choosing. Write several versions and pick the one a stranger would understand fastest. It should also be the page's h1, the main heading in the HTML, because search engines and screen readers treat that as the title of the page. Our guide to writing website copy for a startup goes through the process.

Hero Layouts

  • Text beside an image. Headline and button on one side and a picture on the other, stacking on a phone. The safest and most flexible layout.
  • Text over a full-width image. Dramatic, but the text needs a tint or gradient behind it to stay readable, and the image must still work when it is cropped very differently on a phone.
  • Text only. A strong headline on a plain or lightly textured background. Fast, clear and under-used.
  • Product in use. A screenshot, a short looping video or an interactive demonstration. The right choice for software.
  • Video background. Atmospheric, but heavy. It needs a still image as a fallback, no sound and a way to pause it.
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.08;
  max-width: 18ch;
}
A hero with text beside an image that stacks on small screens. The headline scales with the screen and is kept to short lines.

Choosing the Image

The image should show something true about the business: the product, the finished work, the place or the people. A photograph of your own team at work will do more than a polished stock picture of strangers shaking hands, which visitors recognise and ignore.

  • Choose an image with a clear subject and calm areas where text can sit.
  • Check how it crops on a tall phone screen. You may need a second version.
  • If text sits on top of it, add an overlay and test the contrast across the whole image.
  • Write useful alternative text if the image carries meaning. If it is decoration, give it an empty alt attribute.
  • Avoid text baked into the image. It cannot be read by search engines or screen readers, and it blurs when scaled.

Keeping the Hero Fast

The hero image is usually the largest element on the first screen, so it is the one measured for Largest Contentful Paint, the loading measure among the Core Web Vitals. A slow hero makes the whole site feel slow.

<picture>
  <source media="(max-width: 40rem)" srcset="hero-mobile.avif"
          type="image/avif">
  <source srcset="hero.avif" type="image/avif">
  <img src="hero.jpg" alt="Two joiners fitting an oak staircase"
       width="1600" height="900" fetchpriority="high">
</picture>
A differently cropped image for phones, a modern format with a fallback, declared dimensions and a hint to fetch it first.
  • Size and compress the image for the space it fills. See image optimisation.
  • Never lazy load the hero image. It should be among the first things fetched.
  • Declare its width and height so that the page does not jump when it arrives.
  • Be wary of sliders, video and animation libraries. Each adds weight exactly where speed is judged.

Motion in the Hero

A little movement can lift a hero: a headline that fades in, or an image that drifts slowly as the page scrolls. We use a gentle parallax effect on our own home page. The rule is restraint. The animation must not delay the headline, must not distract from the button and must stop for visitors who have asked their device to reduce motion.

Carousels are the exception to the idea that a little motion helps. A rotating set of banners is usually a compromise between people who each wanted the top spot, and the result is that visitors see the first slide, ignore the rest and are sometimes interrupted mid-sentence when it changes. Pick the most important message and give it the whole hero.

Common Hero Section Mistakes

  • A headline that could belong to anyone. If a competitor could use it unchanged, it is not saying enough.
  • Too many buttons. Each extra choice makes the main one less likely to be taken.
  • Unreadable text over a photograph. Light text over a pale sky, or dark text over shadow.
  • A hero taller than the screen. If the button is below the first screen on a laptop, many visitors will not see it.
  • Stock photography that says nothing. Generic images make a business look generic.
  • The same hero on every page. Inner pages need a shorter introduction that names their own subject.

Putting It Into Practice

Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.

Frequently Asked Questions

What is a hero section on a website?

It is the large section at the top of a web page, usually containing a headline, a short supporting sentence, a call-to-action button and an image or video. Its job is to tell visitors what the business offers and what to do next.

What should a hero section include?

A clear headline, one or two supporting sentences, a single main call to action and an image that shows something real about the business. A small trust signal, such as a review score, also helps. Everything else belongs further down the page.

What size should a hero image be?

Large enough to look sharp at the width it is displayed, and no larger. For a full-width hero that often means a file around 1,600 to 2,000 pixels wide for desktops and a smaller, differently cropped file for phones, saved in a modern format such as AVIF or WebP and compressed well.

Should I use a slider in my hero section?

Usually not. Sliders hide most of their content behind the first slide, move while people are reading, are awkward for keyboard and screen reader users and add weight to the page. One well-chosen message works better.

How tall should a hero section be?

Tall enough to give the headline room, and short enough that the main button and a hint of the next section are visible on a typical laptop and phone. Many heroes work well at somewhere between two thirds and the full height of the screen. Avoid fixed heights in pixels.

Want a Website Built This Way?

DigitalPod designs and builds websites for startups and growing UK businesses, with everything handled in-house from the first sketch to launch. Startup website design starts from £2,400, or you can read what clients say in our Trustpilot reviews.

Get a quote

Related Web Design Techniques

More from our web design techniques guides. For costs, briefs and choosing a designer, see the startup blog.