Encodera

Thanks for reading!

Donate to the site — we work hard for you.

HTML & CSS reference

<hgroup>

A heading together with its subtitle or tagline.

Syntax

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

Examples

A heading and a subtitle:

<hgroup>
  <h1>The Bean</h1>
  <p>Coffee roasted with love since 2015</p>
</hgroup>

Notes

Inside go one <h1>–<h6> heading and <p> paragraphs with the subtitle. Do not make the subtitle a second heading — it would show up in the page outline as a separate section.

See also

  • <h1>–<h6> — Headings of six levels: `<h1>` is the main one, `<h6>` the smallest.
  • <header> — The header of a page or a section: logo, heading, navigation.

In the tutorial

  • Semantic markup — The neutral div and span and the meaningful header, nav, main, article, section, aside and footer tags for page structure.

Thanks for reading!

Donate to the site — we work hard for you.