Sub topic 6
Subheads: structuring and scanning
This chapter assumes you know the basic vocabulary of type (typeface, size, weight, italic). It also assumes you can read simple HTML and CSS, or that you can apply the same values in a design tool. It builds on the earlier chapters about body text, the type scale, and headlines.
What subheads do
A subhead is a heading that sits below the headline and introduces one section of the content. Readers rarely read a page from top to bottom at first. They scan: the eye jumps between the headline, the subheads, and anything bold or visual, and then settles into the paragraphs that seem relevant. Subheads are the main stopping points in that scan.
A good subhead does three jobs:
- It tells the reader what the section is about, so they can decide whether to read it.
- It breaks a long text into pieces of manageable size.
- It shows how the content is organized, much like a table of contents spread through the page.
If the headline is the entry point, subheads are the signposts. The typography must make them easy to find without making them compete with the headline.
Where subheads sit in the scale
In a type scale, each level needs a step that is clearly different from its neighbors. With a 1.25 ratio and a 1rem body size, the steps are 1rem, 1.25rem, 1.563rem, 1.953rem, and 2.441rem. A common assignment is:
| Role | Step | Size |
|---|---|---|
| Body text | step-0 | 1rem |
| Minor subhead (h3) | step-1 | 1.25rem |
| Main subhead (h2) | step-2 | 1.563rem |
| Headline (h1) | step-4 | 2.441rem |
The assignment skips step-3 (1.953rem) on purpose. The gap between the h2 and the h1 is then two steps, which keeps the headline clearly dominant. Step-3 stays available for a large intro or a special display heading.
:root {
--step-0: 1rem;
--step-1: 1.25rem;
--step-2: 1.563rem;
--step-3: 1.953rem;
--step-4: 2.441rem;
}
body { font-size: var(--step-0); }
h3 { font-size: var(--step-1); }
h2 { font-size: var(--step-2); }
h1 { font-size: var(--step-4); }Using the variables, instead of repeating raw numbers, means a change to the ratio updates every level at once.
Size is not the only cue
With a ratio as small as 1.25, an h3 is only a quarter larger than body text. Size alone may not make it stand out, especially in a serif face with a generous x-height. Add a second cue, usually weight. A bold or semibold h3 at 1.25rem is easy to spot, while a regular-weight one can blend into the paragraph.
Some guidelines for these secondary cues:
- Keep the weight difference real. Regular (400) against semibold (600) is visible. Regular against medium (500) often is not.
- Do not stack every cue on one level. A heading that is large, bold, italic, colored, and underlined is noisy and no longer ranks anything.
- Use the same cue for the same level everywhere. If h2 is semibold on one page, it must be semibold on all of them.
- Reserve all caps for short labels. Long subheads in capitals are harder to read because the word shapes disappear.
Space does most of the grouping
A subhead belongs to the text after it, not the text before it. The reader judges this mostly by distance, not by size. Put more space above the subhead than below it, and the heading attaches to its section.
h2 {
font-size: 1.563rem;
font-weight: 600;
margin-top: 2em;
margin-bottom: 0.5em;
}
h2 + p {
margin-top: 0;
}The em unit here is relative to the heading's own font size. At 1.563rem (about 25px), 2em is about 50px above and 0.5em is about 12px below. The ratio is roughly 4 to 1. The h2 + p rule is an adjacent-sibling selector. It removes any top margin from the first paragraph after the heading, so that gap stays exactly what the heading defined.
Vertical margins between block elements also collapse. When a paragraph's bottom margin meets a heading's top margin, the browser uses the larger of the two, not the sum. In practice, the heading's 2em wins and the gap is not doubled. Remember this when you calculate spacing by hand.
Mark up the hierarchy with real headings
Use semantic heading elements so that the structure is in the document and not only in the styling. Browsers, search engines, and screen readers use that structure. Screen reader users can jump from heading to heading, much as sighted readers scan.
<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.</p>
<h3>A smaller subhead inside that section</h3>
<p>More detail, one level down.</p>
</article>Choose the element by the structure of the content, then style it to the look you want. Do not pick an h4 because it is small, and do not use a bold p or div as a fake heading. The visual and the structural hierarchy should agree.
Writing subheads that scan well
Typography only works if the words support it. A reader who scans only the subheads should be able to follow the page's argument.
- Be specific. "Setting line height for body text" is better than "Details".
- Keep them short enough to fit on one line at typical widths. A subhead that wraps to three lines becomes a paragraph.
- Use a parallel form within a list of sections, for example all noun phrases or all verb phrases.
- Do not repeat the headline. Each subhead should add information.
Common errors and how to fix them
| Problem | Symptom | Fix |
|---|---|---|
| Skipped levels | An `h2` is followed directly by an `h4` | Use `h3`, or restructure the sections |
| Too many levels | Four or five heading levels in a short article | Merge sections, or use lists instead of deeper headings |
| Subheads too close to body | Headings blur into paragraphs in the squint test | Add weight, or increase the step in the scale |
| Symmetric spacing | Heading seems to float | Larger space above, smaller below |
| Orphaned heading | A subhead sits at the bottom of a column or page, with its text on the next | Keep it with the following text (see below) |
| Inconsistent styling | The same level looks different across pages | Define each level once in the stylesheet |
The orphaned heading problem appears in multi-column layouts and in print. You can ask the browser to avoid a break right after a heading:
h2,
h3 {
break-after: avoid;
}Support depends on the layout context, so check it in the columns or print output you actually use.
Also consider fixed navigation bars. If a page has a sticky header and readers follow links to a subhead, the heading can end up hidden under the bar. The scroll-margin-top property on headings reserves room for it:
h2,
h3 {
scroll-margin-top: 4rem;
}Check your work
Squint at the page, or blur it, until you cannot read the words. You should still see where the headline is, where each section starts, and where the dense body text lies. If two subheads of different levels look the same, or a subhead disappears into a paragraph, the hierarchy needs more contrast. Later chapters return to this test along with others.
Exercise
A stylesheet sets h2 { margin-top: 1em; margin-bottom: 1em; }, and readers say the subheads seem to float between paragraphs. What is wrong, and what values would you use instead?
Show answer
The space above and below the subhead is equal, so distance does not show which paragraph the heading introduces. Make the space above larger than the space below, for example margin-top: 2em; margin-bottom: 0.5em;. Also add h2 + p { margin-top: 0; } so the first paragraph after the heading adds no extra gap.
Exercise
An article uses an h1, then an h2, then jumps to an h4 because the designer likes its smaller size. Give two problems with this and a better approach.
Show answer
First, the skipped level breaks the document outline, which makes navigation by headings confusing for screen reader users. Second, the markup is chosen for appearance instead of structure. Use an h3 for the nested section, and set its size and weight in CSS to get the look you want.