Hero section

On this page 7

A hero section is the large introductory block at the top of a web page, usually spanning the full width of the viewport, that combines a headline, a short supporting statement, a dominant visual and a primary call to action. In Design, and specifically in the practice of Layout & grids, it is the first composition a visitor sees before scrolling, so it carries a disproportionate share of the page’s communicative work.

The term borrows from print and comic layouts, where the hero image was the single dominant picture on a spread. On the web, the hero section must answer three questions within a few seconds: what this page offers, why it matters to the visitor and what to do next. Its structure is governed by the same grid, spacing and hierarchy rules as the rest of the page, but at a larger scale and with stricter constraints on clarity.

How a hero section is structured

A hero section is built from a small set of functional components, each with a defined role in the visual hierarchy. Designers place these components on the page’s column grid, typically a 12-column grid on desktop, so that the hero aligns with the content that follows rather than floating as an isolated poster.

The table below lists the standard components, their purpose and the constraints experienced designers apply to each.

ComponentPurposeTypical constraint
HeadlineStates the value proposition6-12 words, largest type on the page
SubheadlineClarifies the headlineOne or two sentences, 15-30 words
Primary call to actionDrives the main conversionOne high-contrast button
Secondary actionOffers a lower-commitment pathText link or outline button
Hero visualSupports the message emotionallyImage, illustration, video or product shot
Trust signalsReduce hesitationLogos, ratings or short proof points
Core components of a hero section

The components follow a reading order that matches common scanning behavior. In a split layout, text sits on one half of the grid and the visual on the other, which suits the Z-pattern of eye movement: the eye moves from the logo to the navigation, then diagonally to the headline and finally to the button. In a centered layout, the text stack sits on the central columns over a background image or color field.

Common hero section layouts

Hero sections vary mainly in how text and visual share space. The choice depends on the strength of the available imagery, the length of the message and the importance of performance on mobile devices.

LayoutArrangementBest suited for
Split heroText and visual in two grid halvesSoftware products, services with a clear screenshot
Full-bleed imageText overlaid on an edge-to-edge photoTravel, hospitality, editorial brands
Centered text heroText stack on central columns, minimal visualDeveloper tools, manifestos, campaigns
Video backgroundLooping muted video behind textEvents, entertainment, physical products
Product-led heroInteractive demo or large product renderHardware, apps with a strong interface
Bento-style heroSeveral tiles of unequal sizePlatforms with multiple core features
Hero layout variants and when each fits

A frequent question concerns height. A full-viewport hero set to 100vh creates drama but can hide the fact that more content exists below, a problem known as the false floor. Many teams therefore limit the hero to 60-80% of the viewport height or let the top of the next section peek into view, which signals that scrolling continues.

Hero section and the grid system

A well-built hero section inherits the page grid instead of inventing its own geometry. The headline block usually spans 6 to 8 of 12 columns on desktop, because lines longer than about 60-75 characters become hard to read even at display sizes. Outer margins and gutters match those of the sections below, so the left edge of the headline aligns with the left edge of body content further down.

Vertical spacing follows the same rhythm. Teams working with an 8-point grid set the padding above and below the hero in multiples of 8, commonly 64, 96 or 128 pixels on desktop, and reduce it proportionally on small screens. On a responsive grid, a split hero collapses into a single column, and the order of text and visual must be decided deliberately: placing the headline before the image on mobile keeps the message above the fold.

The following comparison shows how hero sections differ from neighboring layout concepts that are often confused with them.

ConceptPosition on pageMain function
Hero sectionTop of the page, first viewportCommunicate the core message and primary action
BannerAnywhere, often narrowAnnounce a promotion or notice
Card layoutContent areas below the heroPresent several comparable items
Carousel or sliderOften placed where a hero would beRotate several messages in turn
Page headerTop of inner pagesShow the page title and context
Hero section compared with related layout patterns

Designing an effective hero section

The decisive principle is one message and one primary action. Every additional claim, button or animated element divides attention and weakens the hierarchy. Designers test hero copy with a five-second test: viewers see the hero briefly and are asked what the page offers; if they cannot answer, the headline or visual is unclear.

The decision table below summarizes recommended choices for typical situations.

SituationRecommended choiceReason
Strong original photographyFull-bleed image with overlayImagery carries emotion and context
Complex software productSplit hero with interface screenshotShows the product instead of describing it
Weak or stock imageryTypography-led centered heroAvoids generic visuals that reduce trust
Mobile-heavy audienceCompact hero under 70% viewportKeeps content and action visible quickly
Several equal audiencesShort hero plus segmented cards belowPrevents an overloaded headline
Decision guide for hero section design

Text contrast over images deserves particular care. Text placed on a photograph must meet the WCAG 2.2 contrast ratio of 4.5:1 for normal text or 3:1 for large text, which designers achieve with a dark gradient overlay, a solid text panel or by positioning text over a calm area of the image.

Limitations and common mistakes

Hero sections are powerful but expensive in performance and attention. A large hero image is frequently the Largest Contentful Paint element, so an unoptimized file directly harms Core Web Vitals scores and search visibility.

  • Rotating carousels in place of a hero split attention, and later slides receive little engagement.
  • Vague headlines such as slogans without a concrete offer fail the five-second test.
  • Uncompressed images or autoplay video delay rendering, especially on mobile networks.
  • Multiple competing buttons of equal weight remove the clear primary action.
  • Ignoring the mobile crop lets responsive scaling cut faces or products out of the frame.
  • Text baked into images is invisible to screen readers and search engines and cannot be translated.

A common misconception holds that the hero must always fill the screen. Research on scrolling behavior shows that users scroll readily when the page signals more content, so a compact, clear hero often outperforms an oversized decorative one.

Explained without jargon

A hero section is the big opening area you see first when a website loads. Think of it as the shop window of a page. In a few seconds it should tell you what the place offers and invite you inside.

It usually has a large headline, a short explanation, an eye-catching picture and one clear button such as “Start free trial”. The key idea is focus: one message and one main thing to do. When a hero tries to say everything at once, people understand nothing.

A typical use case

A small company selling accounting software redesigns its homepage. The old top area was a carousel with five rotating slides, each promoting a different feature, and analytics showed that few visitors clicked anything in it.

The design team replaces it with a split hero section on a 12-column grid. The left seven columns hold the headline “Send invoices and get paid in two clicks”, a 22-word subheadline and a single “Start free trial” button, with a text link to watch a demo. The right five columns show a cropped screenshot of the invoice screen. The hero occupies about 70% of the viewport, and the image is compressed to under 150 KB in a modern format.

After launch, the Largest Contentful Paint on mobile improves noticeably, and the share of visitors who start a trial from the homepage rises over the following weeks. The outcome reflects the core lesson: a single clear message with one action works better than several competing ones.