Skip to main content

The <hgroup> Element

As defined in the HTML Living Standard, the <hgroup> element represents a heading and any related content, such as subheadings, alternative titles, or taglines.

Visual Example:

Native Standards

Building the foundation of the modern web

<hgroup> <h1>Main Title</h1> <p>This is the subheading or tagline.</p> </hgroup> View HTML Living Standard: The hgroup element

Technical requirements

WCAG Requirement: Info and Relationships

Success Criterion 1.3.1 (Level A): Information, structure, and relationships conveyed through presentation can be programmatically determined.

By using <hgroup>, you explicitly define the relationship between a heading and its tagline. This prevents assistive technology from treating the tagline as an unrelated paragraph. It signals that the content inside is part of the "name" or introduction of the current section.

Understand SC 1.3.1: Info and Relationships

Document Outline Management

A primary benefit of <hgroup> is that it prevents subheadings (often styled smaller but semantically linked) from creating unnecessary "noise" in a document's heading outline.

A11y Tip: Heading Levels

Avoid putting multiple heading tags (e.g., <h1> and <h2>) inside the same <hgroup> if they represent the same title. Instead, use a single heading for the main name and a paragraph for the secondary text. This ensures screen reader users hear a clean, logical outline when navigating by headings.