The <hgroup> tag is used to group heading with associated sub-headings. More specifically it can say that HTML5 <hgroup> element is used for grouping <h1> – <h6> tags. It works just like a container of two or more related heading elements.

The <hgroup> tag was newly introduced and also subsequently been dropped from the W3C HTML5 specification. However, it is still included in the WHATWG Living Standard specification.

Web browser support:

HTML5 <hgroup> tag is supported by latest versions of all web browsers. Internet Explorer 8 or earlier versions of Internet Explorer do not support this tag.

There is a HTML5 <hgroup> element example given below:

<article>
    <hgroup>
        <h1>Title of article goes here</h1>
        <h2>Sub-title of article goes here</h2>
    </hgroup>
    <p>Article content goes here...</p>
</article>

S Ghosh

Leave a Reply

Your email address will not be published. Required fields are marked *

6 + = seven

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>