Skip to content

Find what you need, instantly

Search components, ARIA roles & attributes, and WCAG criteria.

All roles

heading

Document structure role

Identifies a heading that introduces a section of content, with its rank set by aria-level from 1 to 6. Headings form the document outline screen-reader users rely on to skim and navigate. Prefer native `<h1>`–`<h6>` elements, which set the level implicitly.

Used on
A section heading. Prefer native <h1>–<h6>.
Required properties
  • aria-levelthe heading level, 1–6+
Accessible name
From the heading's child text content.
Used by components
Example
role="heading"
<div role="heading" aria-level="2">Section title</div>
See a live, tested example on the Accordion page