Landmark Roles: Structural Navigation
You'll learn how to use ARIA landmark roles to create a clear structural map of your page for assistive technology users.
What Are Landmark Roles?
Think of landmark roles as signposts in a large building. Just as signs help you quickly locate "Reception," "Cafeteria," or "Conference Room," landmark roles help screen reader users jump directly to major sections of a webpage without listening to everything sequentially.
There are five primary landmark roles that define page structure:
The Five Key Landmarks
banner – Identifies the site header or masthead (usually contains logo and site-wide navigation). There should typically be only one per page.
navigation – Marks navigation menus or lists of links. You can have multiple navigation landmarks if you have different nav sections.
main – Defines the primary content area. Like banner, you should have only one main landmark per page.
complementary – Indicates supporting content that's related but separate from the main content (think sidebars, related links, or "About the Author" sections).
contentinfo – Marks the footer area containing metadata like copyright, contact info, or legal links.
Why Use Them?
Screen reader users can pull up a list of landmarks and jump directly to "main content" or "navigation" without tabbing through dozens of elements. It's like having a table of contents for your page structure.
Code Example
<header role="banner">
<h1>My Website</h1>
</header>
<nav role="navigation">
<ul>
<li><a href="/">Home</a></li>
</ul>
</nav>
<main role="main">
<h2>Welcome</h2>
<p>This is the primary content.</p>
</main>
<aside role="complementary">
<h3>Related Links</h3>
</aside>
<footer role="contentinfo">
<p>© 2024</p>
</footer>
Key Takeaway: Landmark roles transform your page into a navigable map, allowing assistive technology users to quickly jump between major sections like banner, navigation, main, complementary, and contentinfo areas.