<hgroup>


HTML <hgroup> Tag

Instance

<!DOCTYPE html>
<html>
<body>

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

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

</body>
</html>

Run Instance»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

IE 9, Firefox, Opera, Chrome and Safari support the <hgroup> tag.

Note: IE 8 or earlier versions of IE browsers do not support the <hgroup> tag.


Tag definition and usage instructions

<hgroup> Tags are used to group title elements.

When the title has multiple levels (subtitles), the <hgroup> element is used to group a series of <h1> - <h6> elements.


Differences between HTML 4.01 and HTML5

The<hgroup> tag is a new tag in HTML 5.


Global attributes

<hgroup> tag supports HTML global attributes.


Event attributes

<hgroup> tag supports HTML event attributes.