HTML <hgroup> tag

Definitie en gebruik

<hgroup> Labels worden gebruikt om een element om te geven 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

Using the hgroup element to mark related titles and paragraphs:

<hgroup>
  <h2>China</h2>
  <p>A thriving, prosperous 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