HTML <hgroup> tag

Definition and Usage

<hgroup> Tags are used to enclose a titles and one or more <p> element.

<hgroup> The title within an element can be any <h1> to <h6> title.

Note:<hgroup> Elements are not displayed as any special style in the browser. However, you can use CSS to set <hgroup> Styles of elements and their content.

See also:

HTML Reference Manual:<h1> - <h6> tags

Example

Use the hgroup element to mark related titles and paragraphs:

<hgroup>
  <h2>China</h2>
  <p>A thriving, flourishing country.</p>
</hgroup>

Try It Yourself

Global Attributes

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

Event Attributes

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

Default CSS Settings

Most browsers will use the following default values to display <hgroup> Element:

hgroup {
  display: block;
}

Try It Yourself

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support