Skip to content

Articles · Good practices

Heading hierarchy: can you skip a level?

Blind people often browse a page heading by heading. What RGAA criterion 9.1 checks, what its glossary says about skipped levels and the h1, and why an h4 picked for its size misleads the listener.

By

· Published on

On a long page, a person using a screen reader does not read everything. They press the H key to jump from heading to heading, or display the list of headings, the way you skim a table of contents. In the survey WebAIM ran in late 2023 and early 2024 with 1,539 screen reader users, 71.6% navigate through the headings first to find information on a lengthy page.

What the RGAA checks

Criterion 9.1 asks: « Dans chaque page web, l’information est-elle structurée par l’utilisation appropriée de titres ? » (On each web page, is information structured by the appropriate use of headings?) It is broken down into three tests:

  • Test 9.1.1: « Dans chaque page web, la hiérarchie entre les titres (balise <hx> ou balise possédant un attribut WAI-ARIA role="heading" associé à un attribut WAI-ARIA aria-level) est-elle pertinente ? » (On each web page, is the hierarchy between headings relevant?)
  • Test 9.1.2: « Dans chaque page web, le contenu de chaque titre (balise <hx> ou balise possédant un attribut WAI-ARIA role="heading" associé à un attribut WAI-ARIA aria-level) est-il pertinent ? » (On each web page, is the content of each heading relevant?)
  • Test 9.1.3: « Dans chaque page web, chaque passage de texte constituant un titre est-il structuré à l’aide d’une balise <hx> ou d’une balise possédant un attribut WAI-ARIA role="heading" associé à un attribut WAI-ARIA aria-level ? » (On each web page, is each passage of text that forms a heading structured with an <hx> element or an element with role="heading" and aria-level?)

The RGAA asks for a “relevant” (« pertinente ») hierarchy, meaning levels that follow how the content is organised. WCAG 2.2 links this requirement to success criteria including 1.3.1 Info and Relationships and 2.4.6 Headings and Labels.

Skipping a level

The RGAA allows it. Its glossary entry for « Titre » (heading) describes a strict hierarchy as good practice, and states that skipped levels do not fail criterion 9.1 as long as the hierarchy stays consistent: an <h3> can come directly after an <h1>.

A skip still costs the listener something. When they hear “heading level 4” right after a level 2, they look for the level 3 they think they missed. The skip often comes from a heading chosen for its size on screen: set the size in CSS and keep the level for the structure.

Fake headings and too many headings

Test 9.1.3 targets another defect: a large bold text that introduces a section, but marked up as a <p> or a <div>. It does not appear in the list of headings, and the section disappears from the outline. Conversely, a slogan, a quotation or a product name marked up as a heading for its styling adds noise to the list. Tests 9.1.1 and 9.1.2 then assess whether the hierarchy and the content of the headings are relevant.

What about the h1?

According to the same glossary entry, the heading hierarchy does not have to contain an <h1>, even though the RGAA does not encourage leaving it out. An <h1> that states the subject of the page gives the person a direct entry point to the main content. In the WebAIM survey, 88.8% of respondents find heading levels very or somewhat useful.

Our advice

  • Write the outline first, then choose the levels; styling comes afterwards.
  • Read the list of headings on its own (browser extension, or NVDA’s elements list, Insert+F7): it should summarise the page.
  • In a content editor, offer paragraph styles rather than heading levels to make a text stand out.

Sources

  • RGAA 4.1.2, criterion 9.1 and its tests, and glossary (entry « Titre »). accessibilite.numerique.gouv.fr (in French)
  • WebAIM, Screen Reader User Survey #10 Results, December 2023 to January 2024. webaim.org
  • W3C, WCAG 2.2, success criteria 1.3.1 and 2.4.6. w3.org

Leave a Reply

Every comment is reviewed before it is published. Your email address will not be published. Fields marked with an asterisk (*) are required. See the privacy policy.

Read also