Note/Warning/Danger/Info This tag is was introduced in HTML5 but later deprecated in HTML5.
The W3C has dropped this tag in its HTML5 specification but this element is still present in the WHATWG living standard specification.
The W3C has dropped this tag in its HTML5 specification but this element is still present in the WHATWG living standard specification.
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
Related Tags
<header>, <footer>, <address> , <h1>, <h2>, <h3>,<h4>,<h5>, <h6>,<body>,<section> or <nav> tags.