Favorites

ARIA heading Role

heading
ARIA Document Structure RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

Category
Document Structure
HTML equivalent
<h1>, <h2>, <h3>, <h4>, <h5>, <h6>
Accessible name from
contents, author
Required parent role
None
Required child roles
None

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

<h2>Ingredients</h2>
<p>Flour, water, salt.</p>

<div role="heading" aria-level="3" style="font-weight:bold">Optional extras</div>
<p>Olive oil.</p>

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.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee