Don’t use a heading element (h1
-h6
) for the subheading. This was once possible with the hgroup
element, but it got removed.
Now the HTML5 spec has a section about Subheadings, subtitles, alternative titles and taglines. Use a p
element for the subheading, and group both, the heading and the subheading in a header
element:
<article>
<header>
<p>New product</p>
<h1>Launching our new X-series</h1>
</header>
</article>
If you think the lead paragraph should also be part of the header (instead of the main content), you can put it in the header
, too.