Heading 1
h12remHeading 2
h21.75remHeading 3
h31.375remHeading 4
h41.125remHeading 5
h51remHeading 6
h61rem
Typography
Headings
Heading Groups
When headings are used inside a hgroup, they have no margin. The hgroup itself has a margin-bottom of --sugar-spacing-block.
Often, you may want to hide the subtitle from readers and include all the necessary information in the main title, as shown in the example below.
<hgroup aria-label="Main title - Subtitle">
<h1>Main title</h1>
<h2 aria-hidden="true">Subtitle</h2>
</hgroup>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit.
Ex unde ipsam, nihil esse, odio nam reprehenderit impedit cumque.
</p> Main title
Subtitle
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ex unde ipsam, nihil esse, odio nam reprehenderit impedit cumque.