The <aside> element holds content that's tangentially related to the main content around it — related, but not essential to understanding the primary content.
Syntax & Example
<main>
<article>
<h2>5 Tips for Learning Python</h2>
<p>Start with the basics before jumping into frameworks...</p>
</article>
<aside>
<h3>About the Author</h3>
<p>Written by a CodingNow mentor with 6 years of Python experience.</p>
</aside>
</main>
Two Common Uses
- Page-level sidebar — related links, a search widget, an ad slot — tangential to the whole page
- Content-level aside — a pull-quote or side note within an article, related to just that piece of content
<article>
<p>SQL joins combine data from multiple tables...</p>
<aside>
<p><strong>Tip:</strong> Always alias your tables in multi-table joins for readability.</p>
</aside>
</article>
What aside Is Not For
It's not just "the sidebar div, whatever's in it." Content genuinely essential to understanding the main content doesn't belong in <aside> — if removing it would leave a gap in the primary content's meaning, it shouldn't be there.
Common Mistakes
- Using
<aside>purely because content is visually positioned to the side (a CSS/layout concern) rather than because it's actually tangential in meaning - Putting essential content inside
<aside>, where screen readers may present it as skippable/secondary
Interview Relevance
"Give an example of content that belongs in aside vs main content" — a practical way interviewers check real understanding beyond the definition.
Practice Question
Add an <aside> to a recipe page containing a "related recipes" list.