Skip to content

STR-002b Word each heading so it says what the part below it holds

Level
Rule
Verdict
Requirement
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 launch
h2Dates

1 March to 30 April

h2Owner

Maya Lindqvist

h2Tags

design, launch

Simulated: the heading list a screen reader would build from this page's code:

  1. h1Spring launch
  2. h2Dates
  3. h2Owner
  4. h2Tags

Press Next heading. Without the cards, the list still says what each part is: dates, owner, tags.

Don't: Headings that fit any card

Page: Spring launch

h1Spring launch
h2Details

1 March to 30 April

h2Info

Maya Lindqvist

h2Misc

design, launch

Simulated: the heading list a screen reader would build from this page's code:

  1. h1Spring launch
  2. h2Details
  3. h2Info
  4. h2Misc

The cards hold the same things, but are headed Details, Info and Misc. The heading list tells a person nothing, so they open each card to find out.

Don't: Numbered sections

Page: Project settings

h1Project settings
h2Section 1

Maya Lindqvist, Tomas Reyes and 2 more

h2Section 2

14 Alder Lane, Bristol

Simulated: the heading list a screen reader would build from this page's code:

  1. h1Project settings
  2. h2Section 1
  3. h2Section 2

Section 1 and Section 2 say nothing about the members or the billing address below them.

Do: Short on screen, clear out of context

Page: Spring launch

h1Spring launch
h2Activity

Maya added a date, 2 hours ago

h2Members

Maya Lindqvist, Tomas Reyes

Simulated: the heading list a screen reader would build from this page's code:

  1. h1Spring launch
  2. h2Activity in Spring launch
  3. h2Members of Spring launch

The visible heading stays short, Activity. A visually hidden span adds the rest, so in the list it is read as "Activity in Spring launch". Press Next heading to hear it.

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

Stances on STR-002b
SourceRoleStancePage
WCAG 2.2LawRequires2.4.6 Headings and Labels
Material DesignJudge SupportsAccessibility designing: structure
Apple Human Interface GuidelinesJudge SupportsVoiceOver
Carbon Design SystemJudge No position
GOV.UK Design SystemExpert witness SupportsWriting for user interfaces
Nielsen Norman GroupExpert witness SupportsMicrocontent: 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