×

html · level 2 · unit 4 · lesson 1

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

wraps a piece that makes sense on its own.

elements say what a part of a page is, not how it looks. You already know some: <header>, <nav>, <main> and <footer>. They look no different from a <div>, but browsers and screen readers learn what each part is for.

An article is a complete piece that would still make sense on another page: a blog post, a recipe, a review or a product card. Wrap each one in <article>, starting with its own heading.

A news page holds many articles. A shop page has one for each product.

<main>
  <h1>Bake club blog</h1>
  <article>
    <h2>The perfect scone</h2>
    <p>Cold butter is the secret.</p>
  </article>
  <article>
    <h2>Bread with no kneading</h2>
    <p>Let time do the work.</p>
  </article>
</main>

Press show my page to see it here.

Ask yourself: could this piece be printed on its own and still make sense? Then it is an article.