Semantic Elements

HTML <hgroup> element

Groups a single heading with related secondary text, such as a subtitle or tagline. Use p for the secondary text. Use one heading at the appropriate rank and paragraphs for supporting text. The subtitle is not an additional heading; this preserves a sensible heading hierarchy. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<hgroup>  <h1>Title</h1>  <p>Subtitle</p></hgroup>

Return Value

HTMLElement

Content model: One heading (h1–h6), optionally preceded or followed by paragraphs; script-supporting elements may be interspersed.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <hgroup>      <h1>Field notes</h1>      <p>A weekly journal</p>    </hgroup>  </body></html>
HTML Reference