Home >Web >HTML reference – elements and attributes >aside – complementary content

aside – complementary content

<aside>…</aside>

Complementary content – related to its surroundings, but the page would make sense without it: a sidebar with related links, a box explaining a term, an advert, the author of an article. That the content is “aside” is a matter of meaning, not position – aside can be anywhere.

  • Default display: display: block
  • End tag: required
  • Content: flow content
  • Where it can be used: anywhere flow content is allowed (not inside address)
  • DOM interface: HTMLElement

Attributes

Only global attributes.

Examples

A sidebar of the page and a box with an explanation inside an article:

<main>
  <article>
    <h1>How to bake sourdough bread</h1>
    <p>Prepare the starter a day in advance…</p>
    <aside>
      <h2>What a starter is</h2>
      <p>A mixture of flour and water in which yeasts and lactic acid bacteria multiply.</p>
    </aside>
  </article>
</main>
<aside aria-label="Related recipes">
  <h2>You might also like</h2>
  <ul>
    <li><a href="/recipes/rolls/">Homemade rolls</a></li>
  </ul>
</aside>

Accessibility

aside has the complementary role and screen readers offer it as a landmark of the page. Inside article or section, however, they treat it as a landmark only when it has an accessible name (aria-label).

Things to watch out for

  • Content without which the text would not make sense does not belong in aside – an important warning in a tutorial, for example.
  • Remarks in brackets or asides in the text are not aside, they are just text.
  • The look (a column on the right) is up to CSS. On phones the sidebar usually goes below the content.

Browser support

Baseline – widely available: works in all major browsers and has for a long time (since 2015 at the latest). Since version: Chrome 5, Firefox 4, Safari 5. As of October 2026 (MDN browser-compat-data).

Related:
article – self-contained content
section – section
main – main content
nav – navigation
figure – figure with caption