X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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.


Default CSS Settings

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

hgroup {
    display: block;
}



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook