From 5e012413c8aac700f99c7506988f69122a7e00ba Mon Sep 17 00:00:00 2001 From: Eric Fortmeyer Date: Sat, 16 Sep 2023 17:14:31 -0500 Subject: [PATCH] use p tag within hgroup example HTML linters will display errors when the example is copied as is. This is because the standard requires that only one h* tag is used. See https://html.spec.whatwg.org/multipage/sections.html#the-hgroup-element. --- docs/typography.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/typography.html b/docs/typography.html index 5fb6b102..43405569 100644 --- a/docs/typography.html +++ b/docs/typography.html @@ -5,10 +5,10 @@ <h5>Heading 5</h5> <h6>Heading 6</h6>

Inside a <hgroup> or a <div class="headings"> all margin-bottom are collapsed and the :last-child is muted.

Heading 2

Subtitle for heading 2

<hgroup>
   <h2>Heading 2</h2>
-  <h3>Subtitle for heading 2</h3>
+  <p>Subtitle for heading 2</p>
 </hgroup>
<div class="headings">
   <h2>Heading 2</h2>
-  <h3>Subtitle for heading 2</h3>
+  <p>Subtitle for heading 2</p>
 </div>

Inline text elements:

Abbr. abbr

Bold strong b

Italic i em cite

Deleted del

Inserted ins

Ctrl + S kbd

Highlighted mark

Strikethrough s

Small small

Text Sub sub

Text Sup sup

Underline u

Links come with .secondary and .contrast styles.

ℹ️ These classes are not available in the class-less version.

Primary
Secondary
Contrast
<a href="#">Primary</a>
 <a href="#" class="secondary">Secondary</a>
 <a href="#" class="contrast">Contrast</a>

Blockquote:

"Maecenas vehicula metus tellus, vitae congue turpis hendrerit non. Nam at dui sit amet ipsum cursus ornare."
- Phasellus eget lacinia