Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><del>Neither is correct. You should likely being using DIV's for both. <code>&lt;aside&gt;</code> is not to be used for sidebars, but a section of related content (such as a glossary of terms or additional notes on the topic).</del></p> <p><del>See also: <a href="http://html5doctor.com/understanding-aside/" rel="nofollow noreferrer">http://html5doctor.com/understanding-aside/</a></del></p> <p><del><strong>Update:</strong> As Jordan pointed out below, this article has been updated and should be referenced instead of the one I original posted. And as always, when in doubt, refer to the spec!</del></p> <p><del><a href="http://html5doctor.com/aside-revisited/" rel="nofollow noreferrer">http://html5doctor.com/aside-revisited/</a></del></p> <p><strong>Update 17/07/27:</strong> As this is the most-voted answer, I should update this to include current information locally (with links to the references).</p> <p>From the spec <sup><a href="https://www.w3.org/TR/html51/sections.html#the-aside-element" rel="nofollow noreferrer">[1]</a></sup>:</p> <blockquote> <p>The aside element represents a section of a page that consists of content that is tangentially related to the content of the parenting sectioning content, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.</p> </blockquote> <p>Great! Exactly what we're looking for. In addition, it is best to check on <code>&lt;section&gt;</code> as well.</p> <blockquote> <p>The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading (h1-h6 element) as a child of the section element.</p> <p>...</p> <p>A general rule is that the section element is appropriate only if the element’s contents would be listed explicitly in the document’s outline.</p> </blockquote> <p>Excellent. Just what we're looking for. As opposed to <code>&lt;article&gt;</code> <sup><a href="https://www.w3.org/TR/html51/sections.html#elementdef-article" rel="nofollow noreferrer">[2]</a></sup> which is for "self-contained" content, <code>&lt;section&gt;</code> allows for related content that isn't stand-alone, or generic enough for a <code>&lt;div&gt;</code> element.</p> <p>As such, the spec seems to suggest that using Option 1, <code>&lt;aside&gt;</code> with <code>&lt;section&gt;</code> children is best practice.</p> <p><strong>References</strong></p> <ol> <li><a href="https://www.w3.org/TR/html51/sections.html#the-aside-element" rel="nofollow noreferrer">https://www.w3.org/TR/html51/sections.html#the-aside-element</a></li> <li><a href="https://www.w3.org/TR/html51/sections.html#elementdef-article" rel="nofollow noreferrer">https://www.w3.org/TR/html51/sections.html#elementdef-article</a></li> <li><a href="http://html5doctor.com/aside-revisited/" rel="nofollow noreferrer">http://html5doctor.com/aside-revisited/</a></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload