STR-002b Word each heading so it says what the part below it holds
- Level
- Rule
- Verdict
- Requirement
- Area
- Page structure
- Status
- proposed, version 1.0.0
Rule
Word every heading so it says what the part below it holds or is for. A heading that would fit any part of any page, such as "Details" or "Section 2", does not.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: Headings name their part
Page: Spring launch
h1Spring launchh2Dates1 March to 30 April
h2OwnerMaya Lindqvist
h2Tagsdesign, launch
Simulated: the heading list a screen reader would build from this page's code:
h1Spring launchh2Datesh2Ownerh2Tags
Don't: Headings that fit any card
Page: Spring launch
h1Spring launchh2Details1 March to 30 April
h2InfoMaya Lindqvist
h2Miscdesign, launch
Simulated: the heading list a screen reader would build from this page's code:
h1Spring launchh2Detailsh2Infoh2Misc
Don't: Numbered sections
Page: Project settings
h1Project settingsh2Section 1Maya Lindqvist, Tomas Reyes and 2 more
h2Section 214 Alder Lane, Bristol
Simulated: the heading list a screen reader would build from this page's code:
h1Project settingsh2Section 1h2Section 2
Do: Short on screen, clear out of context
Page: Spring launch
h1Spring launchh2ActivityMaya added a date, 2 hours ago
h2MembersMaya Lindqvist, Tomas Reyes
Simulated: the heading list a screen reader would build from this page's code:
h1Spring launchh2Activity in Spring launchh2Members of Spring launch
Why
People rarely read a page from the top. A sighted person scans the headings for the part they need, and a screen reader user often hears the headings as a list, each one without the content under it. A heading that names its part lets both decide at once whether to stop there. Three cards headed Details, Info and Misc make them open each one to find out.
This is a requirement. WCAG 2.2, 2.4.6 Headings and Labels asks that headings describe their topic or purpose. It does not ask that a page have headings, and it does not decide whether text is marked as a heading; that is STR-002a. A short heading is fine. One word can describe its part well.
Do
- In the project tool Ridgeway, the sections of Project settings are Members, Billing address and Delete project. Each names what is under it.
- On a project page, the three cards are headed Dates, Owner and Tags, after what each one holds.
- When a heading must stay short on screen but is vague out of context, add words for assistive technology inside it with a visually hidden
span: the visible Activity is read as "Activity in Spring launch". - Our own choice: put the word that tells parts apart first, so a list of headings can be scanned by its first words.
- The visible heading of a dialog says what the dialog is for, such as Invite a member. Its words are this rule; that it is a heading is STR-002a.
Don't
- Head the list of people in a project with Overview when Members names it.
- Number sections, Section 1, Section 2, with nothing else in the heading.
- Head every card in a grid with the same word, so the list of headings repeats one word ten times.
- Use a clever line as a heading, such as The fun part, over the project's billing details.
Exceptions
- Not covered here. Whether text is a heading in code is STR-002a, and its level is STR-003. Labels of form controls follow FRM-001 and FRM-010, and link text follows TXT-003.
Verdict
Requirement. Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | Requires | 2.4.6 Headings and Labels |
| Material Design | Judge | Supports | Accessibility designing: structure |
| Apple Human Interface Guidelines | Judge | Supports | VoiceOver |
| Carbon Design System | Judge | No position | |
| GOV.UK Design System | Expert witness | Supports | Writing for user interfaces |
| Nielsen Norman Group | Expert witness | Supports | Microcontent: How to Write Headlines, Page Titles, and Subject Lines, by Hoa Loranger, Jakob Nielsen |
Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.
History
- Version 1.0.0, : First version.
Last checked against the other rules for conflicts on .
More in Page structure: 7 rules and 1 guideline · All rules
Justified is an independent project. It is not affiliated with, sponsored or endorsed by the organisations whose guidance it cites. Read the full statement.
Apple is a trademark of Apple Inc., registered in the U.S. and other countries and regions.