Text
Heading group
Published on
Description
The heading group (<hgroup>) pairs a heading with a subtitle or tagline. Only the heading element within the group contributes to the document outline.
Example
Accessibility
- The
<hgroup>element groups a heading with supplementary content (subtitle, tagline). - Only the primary heading (h1-h6) within
<hgroup>is exposed as a heading to assistive technology. - The subtitle
<p>is associated with the heading but does not create a separate heading level.
References
- Level-Setting Heading Levels (opens in new tab) — Adrian Roselli
- There Is No Document Outline Algorithm (opens in new tab) — Adrian Roselli
Related
- Headings — for standalone headings
Variables
Set the size of heading