Headings
Headings elements
Demo
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
API
Tags
Name | Type | Content | |||||||
---|---|---|---|---|---|---|---|---|---|
h1-h6 |
Native element | Any | |||||||
hgroup |
Native element | One heading and one or more paragraphs |
Guidelines
SEO
Using heading elements improves SEO and accessibility.
Accessibility
Strive to use the heading elements. If your situation doesn't allow for that, there is role="heading"
and aria-level
for defining the same.