ARIA heading Role
The heading role marks an element as a heading for a section of the page. The h1 to h6 elements have this role, and screen reader users rely on headings to move around.
Description
The heading role identifies a heading for a section of the page. Headings are one of the main ways screen reader users navigate: many start by listing the headings or jumping between them. The level is given by the required aria-level attribute, from 1 to 6 (or higher).
The <h1> to <h6> elements have this role with the matching level and should be used whenever possible. role="heading" is mainly needed for third-party markup you can't change. A heading's content is used as its name; don't put interactive controls inside it, apart from a button, as in an accordion.
Use levels to reflect the structure of the page, with one <h1> for the page title and no skipped levels. Don't choose a level for its default font size; restyle it with CSS instead.
Use the native HTML <h1>, <h2>, <h3>, <h4>, <h5>, <h6> element where you can: it already has the heading role, with the expected keyboard and browser behavior built in.
Properties
ARIA Attributes
- Required
aria-level- Supported
- None
- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="heading">
Example
Browser Support
The following information will show you the current browser support for the heading ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





