A supporting section of the document, designed to be complementary to the main content at a similar level in the DOM hierarchy, but remains meaningful when separated from the main content.
There are various types of content that would appropriately have this role. For example, in the case of a portal, this may include but not be limited to show times, current weather, related articles, or stocks to watch. The complementary role indicates that contained content is relevant to the main content. If the complementary content is completely separable from the main content, it may be appropriate to use a more general role.
User agents SHOULD treat elements with the role of complementary as navigational landmarks.
One Complementary Landmark on Page
When only one complementary landmark exists on a page, a label is optional.
<h2>Title for complementary area<h2>
…. complementary content area ….
Multiple Complementary Landmarks
When there is more than one complementary landmark on a page, each should have a unique label.
<div role="complementary" aria-labelledby="comp2">
<h2 id="comp2">Title for complementary area 2</h2>
... complementary content area 2 ...
HTML 5 Example
Inherited States and Properties
- aria-busy (state)
- aria-current (state)
- aria-disabled (state)
- aria-expanded (state)
- aria-grabbed (state)
- aria-hidden (state)
- aria-invalid (state)
Use the HTML5 <aside> tag.
The Disney movie <cite>The Little Mermaid</cite> was
first released to theatres in 1989.
The movie earned $87 million during its initial release.
More info about the movie...
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.