Semantics
A heading for a section of the page.
Additional info from the ARIA specification
To ensure elements with a role of heading are organized into a logical outline, authors MUST use the aria-level attribute to indicate the proper nesting level.
Abstract Role
StructureRepresents a non-interactive part of a page that organizes content into coherent units.
Content Categories
Flow ContentAn element that structures and organizes the body of a web document.
Allowed Descendants
Phrasing Children Allowed
Usage
Allowed HTML elements
Implicit semantics
These elements have the role semantics by default, without needing to set the role attribute. Reach for elements with native semantics first when choosing how to implement a role in your content.
h1-h6
Explicitly allowed
- None
Elements that can have any role
abbr[role=heading]address[role=heading]b[role=heading]blockquote[role=heading]canvas[role=heading]cite[role=heading]code[role=heading]custom-element[role=heading]data[role=heading]del[role=heading]dfn[role=heading]div[role=heading]em[role=heading]figure[role=heading]i[role=heading]ins[role=heading]kbd[role=heading]mark[role=heading]output[role=heading]p[role=heading]pre[role=heading]q[role=heading]samp[role=heading]small[role=heading]span[role=heading]table[role=heading]tbody[role=heading]tfoot[role=heading]thead[role=heading]time[role=heading]u[role=heading]var[role=heading]