Sub topic 14
Review a hero against a checklist
This chapter assumes you can read basic HTML and CSS, know what a call to action (CTA) is, and have built the Ledgerly hero from earlier chapters. A checklist review is the last step. It catches problems that are easy to miss while you are building.
Why review with a checklist
Each hero decision looks fine on its own. Problems show up between them. A clear headline can sit under a CTA that says "Submit". A fast image can have useless alt text. A checklist makes you check every concept in the same order each time.
Review in three passes: message, structure, then delivery. Fix problems in that order, because a perfectly fast hero with an unclear offer still fails.
The checklist
| Pass | Check | Pass condition |
|---|---|---|
| Message | Headline | Names the outcome without needing the subheadline |
| Message | Subheadline | Names the audience and the mechanism |
| Message | CTA | One primary action, labeled with what happens next |
| Message | Trust signals | Present, but smaller than the offer |
| Structure | Heading | Exactly one `h1`, containing the offer |
| Structure | Hierarchy | Headline is read first, then subheadline, then CTA |
| Structure | Responsive | One column on phones, no horizontal scroll |
| Delivery | Image | Explicit `width` and `height`, not lazy-loaded |
| Delivery | Alt text | Describes what the image shows |
| Delivery | Contrast | Text and button meet 4.5:1 |
Worked review
Here is a draft hero with four faults.
<section class="hero">
<h1>Welcome to Ledgerly</h1>
<h1 class="hero__sub">We empower businesses</h1>
<button>Submit</button>
<img src="/img/invoice-editor.webp" loading="lazy" alt="image">
</section>Walking through the checklist finds these problems:
- Message: "Welcome to Ledgerly" states no offer. The CTA "Submit" does not say what happens next.
- Structure: There are two
h1elements. Thebuttonhas no destination, so it should be a link to the signup page. - Delivery: The image has no dimensions, so the page shifts when it loads.
loading="lazy"delays the largest visible element. The alt text "image" tells a screen reader user nothing.
The corrected version:
<section class="hero" aria-labelledby="hero-title">
<h1 id="hero-title">Send invoices in under a minute</h1>
<p class="hero__sub">Ledgerly helps freelancers create, send and track invoices, so you get paid sooner.</p>
<a class="hero__cta" href="/signup">Start free trial</a>
<img class="hero__image" src="/img/invoice-editor.webp" width="640" height="400" fetchpriority="high" alt="Ledgerly invoice editor showing a draft invoice with a Send button">
</section>Checks you can run
Some checks need no tools. Squint at the page, or blur it, and see whether the headline still stands out. Resize the browser to 320 pixels wide and look for sideways scrolling. Press Tab and confirm the CTA receives a visible focus outline.
Other checks use tools. Lighthouse reports layout shift and the load time of the largest element. Its accessibility audit flags low contrast and missing alt text. The Ledgerly button, white on #0b5fff, has a contrast ratio of about 5.1:1, which passes.
Common errors
- Reviewing only the desktop layout and skipping phone widths.
- Treating the checklist as pass/fail on looks. Every item needs a testable condition.
- Fixing delivery problems first, then rewriting the headline and invalidating the image choice.
Exercise
A hero has one h1 that states the offer, a CTA labeled "Get started", and an image with loading="lazy", no width or height, and alt text "screenshot". Which checklist items fail, and in which pass?
Show answer
Two failures are in the Delivery pass: the lazy-loaded image without dimensions (a late load and layout shift) and the alt text "screenshot", which does not describe what the image shows. The CTA "Get started" is borderline in the Message pass, because it does not say what the visitor gets. "Start free trial" is more specific. The h1 passes.