×

html · level 2 · unit 4 · lesson 3

  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

holds extras that sit beside the main content.

An aside is related to the main story but not part of it: a tip, a fun fact, an advert or a list of related links. Wrap it in <aside>.

Inside an article, an aside is a side note about that article. Next to <main>, it is usually a for the whole page, and screen readers treat it as a landmark they can jump to or skip.

A good test: delete the aside, and the main content should still make complete sense.

<article>
  <h2>Pancakes</h2>
  <p>Whisk flour, eggs and milk until smooth.</p>
  <aside>
    <h3>Top tip</h3>
    <p>Let the batter rest for 30 minutes.</p>
  </aside>
</article>

Press show my page to see it here.

Like <article>, <aside> changes nothing you can see. It only says that this part is extra.