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

Important point need to be remembered:

  • HTML5 hgroup element is supported by latest versions of all web browsers. Internet Explorer 8 or earlier versions of Internet Explorer do not support hgroup 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 *