Sub topic 1
Why hierarchy matters: guiding the reader's eye
Prerequisites
This chapter assumes you know the basic vocabulary of type: typeface, font size, weight, and italic. It also assumes you can read simple HTML and CSS, or that you use a layout tool such as Figma or InDesign and can map its text settings to the CSS properties shown here. You don't need to know anything about type scales or line spacing yet. Later chapters cover those.
What visual hierarchy is
Visual hierarchy is the ordering of elements on a page so the reader can tell what matters most, what comes next, and what is supporting detail. In text-heavy layouts, this ordering comes from typographic cues: size, weight, spacing, and color.
A page without hierarchy looks like a wall of equal-looking text. The reader has to read line by line to find out whether the page is relevant, where a section begins, or what the main point is. A page with hierarchy lets the reader decide in a few seconds where to look first and where to go next.
Hierarchy is a promise about reading order. The headline says "start here." Subheads say "this is how the page is organized." Body text says "this is the detail, read it if you need it." If the visual signals disagree with the real importance of the content, readers get a wrong map of the page.
How readers actually read
Most readers don't read a page from the first word to the last. They scan. They look at the biggest or boldest element, jump to other elements that stand out, and read in full only the section that answers their question.
This behavior gives hierarchy three jobs:
- Entry: give the eye a clear starting point.
- Navigation: show how the content divides into sections, so the reader can skip or jump.
- Comfort: make the long stretches of body text easy to read once the reader commits to them.
Different elements take on different jobs. Headlines handle entry. Subheads handle navigation. Body text handles comfort. The rest of this tutorial works through each of these in turn.
If the headline or subheads are weak, the loop in this diagram breaks. The reader can't decide whether a section is relevant, so they either read everything or leave.
The cues that create hierarchy
A few visual properties do most of the work. Each one is a cue the reader's eye picks up before reading any words.
| Cue | What it signals | Typical use |
|---|---|---|
| Size | Importance. Larger text is read first. | Headline larger than subheads, subheads larger than body |
| Weight | Emphasis. Heavier strokes stand out. | Bold headlines and subheads, regular body |
| Spacing | Grouping. Elements close together belong together. | More space above a subhead than below it |
| Color and contrast | Priority and legibility. Stronger contrast attracts attention. | Dark text on a light background, a restrained accent color |
| Position | Order. Top and left (in left-to-right languages) are read first. | Headline at the top of the content |
Size is the strongest of these cues, so the next chapter covers it separately. Weight and style act as secondary cues. They separate levels that are close in size, and they work best when used sparingly.
The three text roles
A basic article layout has three roles. Each answers a different reader question.
- Headline: What is this page about? There is usually one per page, and it is the largest and most prominent text.
- Subhead: What is in this part? Subheads break the content into labeled sections. They are smaller than the headline but still clearly distinct from body text.
- Body text: What are the details? This is the baseline. Every other level is defined by how it differs from body text.
Treat body text as the reference point, not an afterthought. If you set the body size first and then derive headline and subhead sizes from it, the whole hierarchy stays consistent. Later chapters show how to do this with a type scale.
A worked example
The HTML below expresses the hierarchy in the markup itself. It uses h1 for the headline, h2 for the subhead, and p for body text. Browsers, search engines, and screen readers all use these elements to understand the page structure. A screen reader user can jump from heading to heading, which is the non-visual version of scanning.
The CSS then makes the levels visually distinct using size, weight, and spacing.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hierarchy demo</title>
<style>
body {
font-family: Georgia, serif;
font-size: 1rem;
line-height: 1.5;
max-width: 40rem;
margin: 2rem auto;
padding: 0 1rem;
color: #222;
}
h1 {
font-size: 2.441rem;
line-height: 1.15;
font-weight: 700;
margin: 0 0 0.5em;
}
.lead {
font-size: 1.25rem;
margin-top: 0;
}
h2 {
font-size: 1.563rem;
font-weight: 600;
margin-top: 2em;
margin-bottom: 0.5em;
}
h2 + p {
margin-top: 0;
}
</style>
</head>
<body>
<article>
<h1>Headline states the main idea</h1>
<p class="lead">A short intro sentence in slightly larger text.</p>
<h2>Subhead introduces a section</h2>
<p>Body text carries the detail. It is the smallest and lightest level, and the reader spends most of their time here.</p>
<h2>A second subhead</h2>
<p>The space above each subhead is larger than the space below it, so each one visibly belongs to the paragraph that follows.</p>
</article>
</body>
</html>Save this as hierarchy-demo.html and open it in a browser. Three things to notice:
- The headline is the first thing you see, because it is the largest and heaviest element.
- The subheads are easy to find while scrolling, because they differ from body text in both size and weight.
- Each subhead sits closer to its own paragraph than to the paragraph above it. This is the proximity cue at work.
Now change the h1 and h2 font sizes to 1rem and reload. Every level still exists in the markup, but the page is much harder to scan. This is the clearest demonstration of what hierarchy does for the reader.
Common errors
Most hierarchy problems fall into a small number of patterns.
- Too many levels. If a page uses five or six visibly different text styles, readers can't tell which differences matter. Three to four levels cover most articles.
- Levels too close together. A subhead only slightly larger than body text, with the same weight, looks like a stray line of text. The difference between levels must be obvious at a glance.
- Everything emphasized. If every paragraph has bold phrases, colored text, and italics, nothing stands out. Emphasis only works against a calm background.
- Using style tags for appearance only. Choosing an
h3because it looks the right size, or a boldpinstead of a real heading, breaks the structure for assistive technology. Pick the element by meaning, then style it with CSS. - Skipping heading levels. Jumping from
h1toh4makes the outline confusing for screen reader users. Move down one level at a time. - Large gap between a heading and its text. If the space below a subhead is the same as or larger than the space above it, the heading appears to float between two paragraphs. Readers may associate it with the wrong one.
- Inconsistency. If one subhead is 24px bold and another is 22px semibold, readers sense a pattern break without knowing why. Define the styles once and reuse them.
A quick way to check
You can test whether a hierarchy works before polishing anything. Squint at the page, or blur it, until you can't read the words. You should still be able to see where the headline is, how many sections there are, and where the main body text sits. If the page turns into a uniform gray block, the hierarchy is too weak. A later chapter covers this test and others in more detail.
Summary of the working model
Hierarchy is built from differences. Each level must differ from its neighbors in a way the reader can see quickly, and each difference must carry meaning. Use size first, then weight, spacing, and color to support it. Express the structure in semantic markup so that the visual order and the underlying order match. Set the body text first, because it defines the baseline against which all other levels are measured.
Exercise
A page has an h1 of 24px, h2 subheads of 22px, and body text of 16px. All three are bold, and each subhead has 1em of space above and 1em below. Name two problems with this hierarchy and say how you would fix each one.
Show answer
First, the levels are too close in size and weight. The h1 and h2 differ by only 2px and look nearly the same, and bold body text removes the weight contrast against the headings. Fix this by making the h1 clearly larger (for example, around 39px, or 2.441rem), setting the h2 at a distinct intermediate size (for example, 25px, or 1.563rem), and returning body text to regular weight. Second, the space around each subhead is symmetric, so the subhead doesn't visibly belong to the paragraph that follows it. Fix this by increasing the space above (for example, 2em) and reducing the space below (for example, 0.5em).
Exercise
A designer styles a bold paragraph with a large font size and uses it as the section title, instead of using an h2 element. The page looks correct in the browser. Why is this still a hierarchy problem?
Show answer
Hierarchy has to exist in the structure as well as in the appearance. A styled paragraph gives sighted readers the right visual cue, but it isn't a heading to assistive technology. Screen reader users can't jump between sections, and search engines can't read the page outline. The fix is to use an h2 element and style it with CSS to get the same look.