← 4.4.4 The article elementTable of contents4.4.6 The h1, h2, h3, h4, h5, and h6 elements →

4.4.5 The aside element

Flow content.
Sectioning content.
Palpable content.
Contexts in which this element can be used:
Where flow content is expected.
Content model:
Flow content.
Content attributes:
Global attributes
DOM interface:
Uses HTMLElement.

The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.

The element can be used for typographical effects like pull quotes or sidebars, for advertising, for groups of nav elements, and for other content that is considered separate from the main content of the page.

It's not appropriate to use the aside element just for parentheticals, since those are part of the main flow of the document.

The following example shows how an aside is used to mark up background material on Switzerland in a much longer news story on Europe.

 <p>Switzerland, a land-locked country in the middle of geographic
 Europe, has not joined the geopolitical European Union, though it is
 a signatory to a number of European treaties.</p>

The following example shows how an aside is used to mark up a pull quote in a longer article.


<p>He later joined a large company, continuing on the same work.
<q>I love my job. People ask me what I do for fun when I'm not at
work. But I'm paid to do my hobby, so I never know what to
answer. Some people wonder what they would do if they didn't have to
work... but I know what I would do, because I was unemployed for a
year, and I filled that time doing exactly what I do now.</q></p>

 <q> People ask me what I do for fun when I'm not at work. But I'm
 paid to do my hobby, so I never know what to answer. </q>

<p>Of course his work — or should that be hobby? —
isn't his only passion. He also enjoys other pleasures.</p>


The following extract shows how aside can be used for blogrolls and other side content on a blog:

  <h1>My wonderful blog</h1>
  <p>My tagline</p>
  <!-- this aside contains two sections that are tangentially related
  to the page, namely, links to other blogs, and links to blog posts
  from this blog -->
   <h1>My blogroll</h1>
    <li><a href="http://blog.example.com/">Example Blog</a>
   <ol reversed>
    <li><a href="/last-post">My last post</a>
    <li><a href="/first-post">My first post</a>
  <!-- this aside is tangentially related to the page also, it
  contains twitter messages from the blog author -->
  <h1>Twitter Feed</h1>
  <blockquote cite="http://twitter.example.net/t31351234">
   I'm on vacation, writing my blog.
  <blockquote cite="http://twitter.example.net/t31219752">
   I'm going to go on vacation soon.
  <!-- this is a blog post -->
  <h1>My last post</h1>
  <p>This is my last post.</p>
   <p><a href="/last-post" rel=bookmark>Permalink</a>
  <!-- this is also a blog post -->
  <h1>My first post</h1>
  <p>This is my first post.</p>
   <!-- this aside is about the blog post, since it's inside the
   <article> element; it would be wrong, for instance, to put the
   blogroll here, since the blogroll isn't really related to this post
   specifically, only to the page as a whole -->
   <p>While I'm thinking about it, I wanted to say something about
   posting. Posting is fun!</p>
   <p><a href="/first-post" rel=bookmark>Permalink</a>
   <a href="/archives">Archives</a> —
   <a href="/about">About me</a> —
   <a href="/copyright">Copyright</a>