HTML <hgroup> Tag
<hgroup>
<h1>Title</h1>
<h2>Subtitle</h2>
</hgroup>
The above example demonstrates usage of the <hgroup>
element.
The <hgroup>
element represents a set of <h1>
- <h6>
elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines.
The <hgroup>
element is supported by the WHATWG HTML Living Standard.
The <hgroup>
element is not supported by the W3C. It was added to HTML5 but then dropped from the spec. If you need your code to be W3C-compliant, avoid this element.
For a W3C-compliant version, use any of the following:
<h1>Title: Subtitle</h1>
<h1>Title</h1>
<p>Subtitle</p>
<h1>Title
<span>Subtitle</span>
</h1>