<hgroup> tag

HTML5 <hgroup> tag

The <hgroup> tag groups the multi level heading elements from <h1> to <h6> .

This is used when there are  multiple levels for the heading of the section.

The multiple levels can be like heading, subheading under the heading, title under the heading etc in each section.

This tag should not be a descendant of <header>, <footer> or <address> tag.

Syntax:
<hgroup>all heading tags</hgroup>

Example

<hgroup>
  <h1>Heading one</h1>
  <h2>Heading two</h2>
  <h3>Heading Three</h3>
</hgroup>

Default value

NONE

How Browser will display

BLOCK Level.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
NA NA Added in HTM5 but deprecated in HTML5 as well

Attributes used with <hgroup> tag

NONE

Global Attributes

The <hgroup> tag supports Global attributes.

Event Attributes

The <hgroup> tag supports Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

<header>, <footer>, <address> , <h1>, <h2>, <h3>,<h4>,<h5>, <h6>,<body>,<section>  or <nav> tags.

Tutorials for all brains!