HTML Reference ยท Sections
The <aside> element
Reference for the HTML <aside> element: sidebars, pull quotes and related links, the complementary landmark, common mistakes, examples and technical details.
The <aside> element holds content that is tangentially related to the content around it: you could remove it and the main text would still be complete. Typical uses are sidebars, "related articles" lists, glossary boxes, pull quotes and background information.
HTML
<aside> <h2>Did you know?</h2> <p>Honeybees visit about two million flowers to make one jar of honey.</p> </aside>
Try it
Attributes
This element has no attributes of its own. It accepts the global attributes; aria-label or aria-labelledby is useful when a page has more than one aside.
Usage notes
- Related, not essential. If the content is central to the page, it doesn't belong in an
<aside>, even when it is displayed in a side column. Layout and meaning are separate decisions. - Meaning depends on position. An aside directly inside the
<body>or<main>relates to the whole page. One inside an<article>relates to that article. - Landmark role. A page-level aside is exposed as a
complementarylandmark, which screen reader users can jump to. An aside nested inside an article, section, nav or another aside only becomes a landmark if it has an accessible name. - Name multiple asides. When there are several landmark asides, label each one so users can tell them apart.
- Not for ads alone, not for parentheses. Advertising is a common use, but a short parenthetical remark within a sentence is just text.
Technical summary
| Content categories | Flow content, sectioning content, palpable content |
| Permitted content | Flow content |
| Tag omission | None; both the start and end tags are required |
| Permitted parents | Any element that accepts flow content |
| Implicit ARIA role | complementary (for an aside nested in sectioning content, only if it has an accessible name; otherwise generic) |
| DOM interface | HTMLElement |
| Default display | block |
Browser support
Supported in every browser.
Related
<article>โ self-contained content<main>โ the dominant content of the page<nav>โ navigation links- Lessons: Semantic Elements, Page Layout, ARIA Roles, States and Properties