Encodera

Thanks for reading!

Donate to the site — we work hard for you.

HTML & CSS reference

<aside>

A side block related only indirectly to the main content: a sidebar, a call-out, ads.

Syntax

<aside>…</aside>

Examples

A call-out next to the text:

<style>
  aside { float: right; width: 140px; margin-left: 12px; padding: 8px; background: #f0f0f0; font-size: 14px; }
</style>
 
<article>
  <aside>Tip: grind beans right before brewing.</aside>
  <p>To make a great pour-over, heat the water to 94 °C and pour it slowly in circles over the coffee. Wait three minutes and enjoy.</p>
</article>

Notes

Removing the content of <aside> does not break the meaning of the main text. Its position on screen comes from CSS — the tag does not have to be on the side.

See also

  • <main> — The main content of the page — what the user came for.
  • <article> — A self-contained piece that makes sense on its own: an article, a post, a review, a product card.
  • <section> — A thematic section of the page with its own heading.

In the tutorial

  • Semantic markup — The neutral div and span and the meaningful header, nav, main, article, section, aside and footer tags for page structure.

Thanks for reading!

Donate to the site — we work hard for you.