Sub topic 6
Choosing a hero visual that supports the message
This chapter assumes you can write basic HTML and CSS and that you know what a landing page is. It also assumes you have a headline and subheadline from the earlier chapters. The hero visual is the image, screenshot, illustration, or video that sits beside or below them in the hero section.
What the hero visual is for
A hero visual has one job: help the visitor understand the claim in the headline faster than text alone. It is not decoration. If you removed the visual and the page still made sense, the visual was optional. If you removed it and the visitor could no longer tell what the product is, it was doing real work.
A good visual does one of three things:
- Shows the product in use, such as a screenshot of the invoice a customer would send.
- Shows the result the visitor wants, such as a paid invoice or a tidy dashboard.
- Shows the visitor's situation, such as a freelancer at a desk, only when that helps them recognize themselves.
Comparing visual choices
| Visual type | Works well when | Common risk |
|---|---|---|
| Product screenshot | The product is software and the interface is the benefit | Too much detail, unreadable at small sizes |
| Result or outcome image | The benefit is a visible change | Looks staged or unrelated to the product |
| Short video | The product needs motion to be understood | Slow load, autoplay with sound, no captions |
| Generic stock photo | Rarely | Says nothing specific and weakens trust |
Choose the type that makes the headline's promise concrete. For the "Send invoices in under a minute" page, a cropped screenshot of a finished invoice with a visible Send button supports the claim better than a smiling stock photo.
Keep the call to action in view
The visual should not push the call to action out of the first screen. On a narrow phone screen, a tall image placed before the button can hide it below the fold. Cap the image height and let it sit after the button in reading order.
<section class="hero">
<h1>Send invoices in under a minute</h1>
<p class="subhead">Example Invoice helps freelancers create, send, and track invoices without a spreadsheet.</p>
<a class="button" href="/signup" data-cta="hero">Start your free trial</a>
<img
class="hero-visual"
src="/images/invoice-screen.png"
alt="Example Invoice screen showing a finished invoice for a design project with a Send button"
width="960"
height="600"
fetchpriority="high"
>
</section>.hero-visual {
display: block;
max-width: 100%;
height: auto;
max-height: 24rem;
object-fit: contain;
}Three details matter here:
- The
widthandheightattributes let the browser reserve space, so the page does not jump when the image loads. fetchpriority="high"tells the browser to load this above-the-fold image early. Use it only on the hero image.- The
alttext describes what the image shows and why it matters. If an image is purely decorative, usealt=""so screen readers skip it.
Common errors
- Text inside the image. Text baked into a picture cannot be resized or read by a screen reader, and it often shrinks to illegible on mobile. Keep the headline as real HTML.
- A heavy file. An uncompressed hero image slows the largest element on the page. Compress it and serve a modern format such as WebP or AVIF where you can.
- A carousel. Rotating images hide most of their content and split attention away from the single goal.
- Claims the visual does not support. A screenshot of a feature the product lacks is an unsupported claim, which the proof chapter warns against.
Exercise
Your hero image is a tall photo placed above the headline, and on a phone the call to action appears only after scrolling. Name two changes that fix this.
Show answer
Move the image after the button in reading order (or beside the text on wide screens), and cap its height with max-height. You can also swap it for a cropped screenshot that shows only the part of the product that proves the headline.