Text
Headings
Published on
Description
Headings (h1-h6) create a document outline for both visual and assistive technology users. Use a single h1 per page and maintain a logical heading hierarchy without skipping levels.
Example
Accessibility
- Each heading level (h1-h6) has an implicit ARIA role of
headingwith anaria-levelmatching the number. - Screen reader users rely on heading structure for navigation — roughly 82% use headings to find content.
- Use a single
<h1>per page. The HTML5 document outline algorithm was never implemented by any browser or assistive technology. - Do not skip heading levels (e.g. h2 to h4). Assistive technology may announce gaps as missing content.
- Avoid heading levels above h6. Browser and screen reader support for
aria-levelabove 6 is inconsistent.
References
- Level-Setting Heading Levels (opens in new tab) — Adrian Roselli
- The Truth about Multiple H1 Tags (opens in new tab) — Adrian Roselli
- There Is No Document Outline Algorithm (opens in new tab) — Adrian Roselli
Related
- Heading group — for pairing headings with subtitles
- Paragraphs — for body content within sections
Variables
Set the size of headings