<aside>

Term side of the Card.
Topic: Semantics
Unit title: <aside>
Categories: Tag
Explanation side of the Card

Explanation: The element that is used to represent content that is indirectly related to the main content, such as sidebars, pull quotes or related links. It's typically positioned to the side of the main content and serves as supplementary information.

Browser compatibility:
  • The chrome browser supports this feature starting from version 5.
  • The edge browser supports this feature starting from version 12.
  • The firefox browser supports this feature starting from version 4.
  • The safari browser supports this feature starting from version 5.
Availability: 

Example

Wronghtml
<aside>
  <a href="/">Home</a>
  <a href="/blog">Blog</a>
</aside>
Righthtml
<nav aria-label="Main">
  <a href="/">Home</a>
  <a href="/blog">Blog</a>
</nav>

Main site links belong in <nav>; <aside> is for content only loosely related to the main content.

Common mistakes

  • Using <aside> for any sidebar, including the main navigation.
  • Adding several <aside> landmarks without labels, so they all sound the same.

Interview questions

Is <aside> the same as a sidebar?

Not always. It means tangentially related content, which often sits in a sidebar but can also be an inline pull quote or note.

Which ARIA role does <aside> have?

It maps to the complementary landmark role.

Analytics cookiesWe'd like to use analytics cookies to see which pages are useful. They're set only if you accept. Privacy Policy