HTML <hgroup> (Header Group) Tag

❮ Previous Reference Next ❯

No assistive technology supports.

Deprecated: HTML5 Not Supported

Example

<hgroup>
	<h1>This is a main heading</h1>
	<h2>This is sub-heading</h2>
</hgroup>

Meaning

The <hgroup> HTML5 element represents a grouping of heading elements <h1> - <h6>.

It may be used to cluster headings and subheadings together.

Note: <hgroup>element is not yet supported, it is easily simulated by using a custom tag or using a <div> element with a special class.

Version: HTML5




Standard Syntax

<hgroup>
	<h1> - <h6>
</hgroup>



Browser Support




Status







Global Attributes

<hgroup> element also supports the Global Attributes in HTML.


Event Attributes

<hgroup> element also supports the Event Attributes in HTML.




By Default CSS Value(s)

Most of the browsers will display the <hgroup> element with the following by default value(s).

hgroup {
  display: block;
}



NOTE: The <hgroup> element is no longer part of the HTML5 standard. It’s advised to follow the HTML5 specification to mark up your multi-level headings without using <hgroup>.

❮ Previous Reference Next ❯