This is a proposed draft of the landmarks information for the ARIA APG 1.1.
A landmark is a recognizeable feature of a web page that can be used for navigation. Features like the header, footer, navigation and main content area of a page can be identified using ARIA landmark roles.
Assistive technologies like screen readers provide keyboard shortcuts for navigating between landmarks, and scripting can be used to provide keyboard navigation within the web page itself.
It is helpful when all content resides within a landmark region, so users do not miss important features.
The following screenshot has the X, Y and Z content regions indicated:
***Insert suitable screenshot***
The following code example demonstrates how the role attribute is used to assign the banner, main and contentinfo landmarks:
<body>
<div id="header" role="banner">
...
</div>
<div id="main" role="main">
...
</div>
<div id="footer" role="contentinfo">
...
</div>
</body>
aria-labelledby
attribute to make the heading act as the label for the landmark region. For example:
<div id="weather" role="region" aria-labelledby="weatherLabel">
<h2 id="weatherLabel">Weather forecast</h2>
...
</div>
aria-label
attribute to provide an invisible label. For example:
<div id="weather" role="region" aria-label="Weather forecast">
...
</div>
There are landmark roles that identify common content features.
Role | Description | Pattern |
---|---|---|
banner | A region containing site oriented content, like the logo, site sponsor or site search. A banner region usually appears at the top of the document, and spans its full width. |
|
complementary | a region containing content that is complementary to the main content, and which has equal importance in the content hierarchy. |
|
contentinfo | A region containing page specific content, like a copyright statement or links to privacy statements. A contentinfo region is usually found at the bottom of the document, and spans its full width. |
|
form | A region containing a collection of items and objectives that combine to represent a form. |
|
main | A region containing the main content of the document. |
|
navigation | A region containing objects (usually links) for navigating the document or related documents. |
|
region | A region containing content that does not fit logically into another landmark region, but which is important enough to be a recogniseable feature of the document. |
|
search | A region containing a collection of items and objects that combine to create a search facility. |
|
Certain HTML elements directly correspond to ARIA landmarks. If these HTML elements are used, it is not nescessary to assign landmark roles explicitly because the browser does this automatically.
Role | Element | Notes |
---|---|---|
banner | <header> |
When the <header> element is scoped to the |
complementary | <aside> |
|
contentinfo | <footer> |
When the <footer> element is scoped to the <body> element |
form | <form> |
|
main | <main> |
|
navigation | <nav> |
|
search | No equivalent |
The HTML Accessibility API Mappings provide more information about the relationship between HTML elements and ARIA roles.