HTML: the aside element

The <aside> element marks content that supplements the main content, such as related links, a sidebar, or a note.

What you will learn

Related information

<article>
  <h2>How to grow herbs</h2>
  <p>Choose a sunny place and water the soil regularly.</p>
  <aside>
    <h3>You may also need</h3>
    <p>See our guide to indoor light levels.</p>
  </aside>
</article>

Inside an <article>, the aside can contain information related to that article but not central to its main flow.

Page-level side content

<main>
  <h1>Learning HTML</h1>
  <p>The main lesson appears here.</p>
</main>
<aside aria-label="Related resources">
  <h2>Related resources</h2>
  <ul><li><a href="/css/">Learn CSS</a></li></ul>
</aside>

At page level, an aside can hold related links or information that supports the main content. Give it a heading or an accessible label when its purpose is not obvious.

Common mistakes