HTML <hgroup> Tag


Example

Use <hgroup> to group headings:

<hgroup>
  <h1>Welcome to my WWF</h1>
  <h2>For a living planet</h2>
</hgroup>

<p>The rest of the content...</p>

Try it Yourself »

Definition and Usage

The <hgroup> tag is used to group heading elements.

The <hgroup> element is used to group a set of <h1> to <h6> elements, when a heading has multiple levels (subheadings).


Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Element
<hgroup> 5.0 9.0 4.0 4.1 11.1


Differences Between HTML 4.01 and HTML5

The <hgroup> tag is new in HTML5.


Global Attributes

The <hgroup> tag also supports the Global Attributes in HTML.


Event Attributes

The <hgroup> tag also supports the Event Attributes in HTML.


Related Pages

HTML DOM reference: HGroup Object


Default CSS Settings

Most browsers will display the <hgroup> element with the following default values:

hgroup {
    display: block;
}



Color Picker

colorpicker