O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Grouping Headings

Sometimes a heading has multiple consecutive levels, such as with headline subheadings, alternative titles, or tag lines. Grouping them in an hgroup element indicates they are related Image. Each hgroup may contain only two or more h1h6 headings; no other elements are allowed.

Image Two related headings are grouped together. In this example, the h2 is a subheading of the article’s h1 headline. Because it’s marked up with the highest-ranking heading, only “Giraffe Escapes from Zoo” appears in the document outline, but both display in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required