Sub topic 6
Order the elements so the offer is read first
This chapter assumes you can write basic HTML and CSS and that you already have a headline, a subheadline and one primary call to action (CTA) from the earlier chapters. Here you decide which of them the visitor sees first, second and third, and how to build that order.
What visual hierarchy is
Visual hierarchy is the order in which the eye moves across a page. Visitors do not read a hero line by line. They scan it, and size, weight, contrast, spacing and position tell them where to look first.
A hero has a fixed reading order:
- The headline states the offer.
- The subheadline adds who it is for and how it works.
- The CTA tells the visitor what to do next.
- The visual and any trust signals support the three items above.
The levers you control
Each lever makes an element more or less prominent. Use them so the offer wins and everything else steps back.
| Lever | Make the offer stronger by | Common mistake |
|---|---|---|
| Size | Making the headline the largest text | Making the logo or navigation bigger than the headline |
| Weight | Using bold only for the headline and CTA | Bolding every line |
| Contrast | Giving the CTA the strongest color on the page | Using the CTA color for links and badges too |
| Space | Leaving room around the headline and CTA | Packing in badges, logos and a second button |
| Position | Placing text first in reading order | Pushing the offer below a large image |
Build it in CSS
The sketch below applies the levers. The headline is the largest element, the subheadline is lighter and smaller, and the CTA is the only filled, saturated block.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ledgerly</title>
<style>
body { font-family: system-ui, sans-serif; margin: 0; color: #1a1a1a; }
.hero { max-width: 40rem; margin: 0 auto; padding: 3rem 1.25rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; }
.hero__sub { font-size: 1.125rem; color: #4a4a4a; margin: 0 0 1.5rem; }
.hero__cta {
display: inline-block; padding: 0.875rem 1.5rem;
background: #0b5fff; color: #fff; font-weight: 600;
border-radius: 0.5rem; text-decoration: none;
}
.hero__note { font-size: 0.875rem; color: #5a5a5a; margin: 0.75rem 0 0; }
</style>
</head>
<body>
<section class="hero">
<h1>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>
<p class="hero__note">No credit card required</p>
</section>
</body>
</html>The sizes step down from headline to subheadline to note. The subheadline uses a softer gray instead of bold, so the CTA is the only element competing with the headline.
Test the hierarchy
Use the squint test. Blur your eyes, or apply filter: blur(6px) to a screenshot. You should still make out the headline first and the CTA second. If the image or a badge stands out more, reduce its contrast or size.
Then look at the secondary action. If you keep a "Watch demo" link, style it as a plain text link so it stays quieter than the primary CTA.
Keep the source order honest
Write the HTML in the same order you want people to read it: headline, subheadline, CTA, then the image. Screen readers and keyboard users follow the source order, not the visual one. If you use CSS order or grid placement to move elements, the tab order and the visual order can disagree.
On a phone, a single column places the image after the text. That keeps the offer at the top of the screen.
Exercise
A hero has a large product screenshot, a bold 2rem headline, a bold subheadline, a blue "Start free trial" button and a blue "Watch demo" button. Name two changes that restore the intended hierarchy.
Show answer
Make the headline clearly larger than everything else, and make the subheadline regular weight in a softer color. Restyle "Watch demo" as a plain text link so only "Start free trial" is a filled blue button. Reducing the screenshot's size or contrast is also valid, as is placing it after the text on small screens.