Update article example to use a header

This commit is contained in:
Damien Guard 2020-11-14 21:13:25 +00:00 committed by GitHub
parent ddabc3e1ef
commit 6971460bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1023,11 +1023,13 @@
<pre><code>&lt;<b>article</b>&gt;I'm a card!&lt;/<b>article</b>&gt;</code></pre> <pre><code>&lt;<b>article</b>&gt;I'm a card!&lt;/<b>article</b>&gt;</code></pre>
<p>You can use <code>&lt;<b>header</b>&gt;</code> and footer <code>&lt;<b>footer</b>&gt;</code> inside <code>&lt;<b>article</b>&gt;</code></p> <p>You can use <code>&lt;<b>header</b>&gt;</code> and footer <code>&lt;<b>footer</b>&gt;</code> inside <code>&lt;<b>article</b>&gt;</code></p>
<article aria-label="Card sectioning example"> <article aria-label="Card sectioning example">
<header>Header</header>
Body Body
<footer>Footer</footer> <footer>Footer</footer>
</article> </article>
<pre><code>&lt;<b>article</b>&gt; <pre><code>&lt;<b>article</b>&gt;
&lt;<b>header</b>&gt;Header&lt;/<b>header</b>&gt;
Body Body
&lt;<b>footer</b>&gt;Footer&lt;/<b>footer</b>&gt; &lt;<b>footer</b>&gt;Footer&lt;/<b>footer</b>&gt;
&lt;/<b>article</b>&gt;</code></pre> &lt;/<b>article</b>&gt;</code></pre>