The <hgroup> Tag

HTML 5 Declarations, Elements (HTML Tags) and Attributes

The <hgroup> tag in HTML 5

The <hgroup> tag is used to indicate which heading tags are the headings for a section and which ones are merely subheadings. The content of the first <hn > tag within the <hgroup> is the top level heading of the section and will be included in the document outline, while any additional headings in the same <hgroup> will be treated as subheadings that will only appear at the designated location on the page itself.

Examples

<section>
<hgroup>
<h1>Main Heading</h1>
<h2>Subheading - Will Not Appear In Document Outline</h2>
</hgroup>
</section>

More information, including differences between HTML 4 / XHTML and HTML 5: HTML <hgroup> tag

Prev: header Next: hr 

Home > HTML 5 Tags > hgroup

Viewing mobile website page. Switch to WML or Full HTML