Favorites

HTML <hgroup> Tag

☕
Enjoying this site?

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

Buy us a coffee
<hgroup>
HTML TagThis tag is supported by all modern browsers.
Updated 22nd November 2026

Description

The <hgroup> element groups a heading with related secondary content, such as a subtitle, alternative title or tagline. It contains exactly one heading element (<h1> to <h6>) and one or more <p> elements before or after it.

The paragraphs inside an <hgroup> do not create headings of their own, so a subtitle does not add an extra level to the document outline. This is the main reason to use it: earlier versions of the specification allowed several headings inside <hgroup>, which caused confusion and accessibility problems, and the current definition uses paragraphs for the subtitle instead.

<hgroup>
  <h1>Frankenstein</h1>
  <p>Or: The Modern Prometheus</p>
</hgroup>

Browsers apply no special styling to <hgroup>, so you can style the subtitle with CSS, for example with a smaller font size and a muted color.

Properties

Permitted Parents
Any element that accepts flow content
Content
Zero or more <p> elements, followed by one <h1>, <h2>, <h3>, <h4>, <h5> or <h6> element, followed by zero or more <p> elements
Start/End Tags
Start tag: required, End tag: required

Example

<hgroup>
<h1>Frankenstein</h1>
<p>Or: The Modern Prometheus</p>
</hgroup>
Open in editor

Attributes

None

Global Attributes

The <hgroup> tag also supports the Global Attributes in HTML5

Event Attributes

The <hgroup> tag also supports the Event Attributes in HTML5

Browser Support

The following information will show you the current browser support for the HTML <hgroup> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag 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