NAVIGATION Landmark
Definition | Navigation landmarks provide a way to identify groups (e.g. lists) of links that are intended to be used for website or page content navigation. |
---|---|
ARIA Specification |
navigation landmark
|
Coding Patterns |
|
Techniques |
|
Headings |
|
One navigation
landmark
HTML5 nav
element technique
<nav>
<h2>title for navigation<h2>
<ul>
<li><a href="page1.html">Link 1</a></li>
<li><a href="page2.html">Link 2</a></li>
<li><a href="page3.html">Link 3</a></li>
<li><a href="page4.html">Link 4</a></li>
.....
</ul>
</nav>
<h2>title for navigation<h2>
<ul>
<li><a href="page1.html">Link 1</a></li>
<li><a href="page2.html">Link 2</a></li>
<li><a href="page3.html">Link 3</a></li>
<li><a href="page4.html">Link 4</a></li>
.....
</ul>
</nav>
[role="navigation"]
attribute technique
<div role="navigation">
<h2>title for navigation<h2>
<ul>
<li><a href="page1.html">Link 1</a></li>
<li><a href="page2.html">Link 2</a></li>
<li><a href="page3.html">Link 3</a></li>
<li><a href="page4.html">Link 4</a></li>
.....
</ul>
</div>
<h2>title for navigation<h2>
<ul>
<li><a href="page1.html">Link 1</a></li>
<li><a href="page2.html">Link 2</a></li>
<li><a href="page3.html">Link 3</a></li>
<li><a href="page4.html">Link 4</a></li>
.....
</ul>
</div>
More than one navigation
landmark
<nav aria-labelledby="nav1">
<h2 id="nav1">title for navigation 1<h2>
<ul>
<li><a href="page11.html">Link 1</a></li>
<li><a href="page12.html">Link 2</a></li>
<li><a href="page13.html">Link 3</a></li>
<li><a href="page14.html">Link 4</a></li>
.....
</ul>
</nav>
....
<nav aria-labelledby="nav2">
<h2 id="nav2">title for navigation 2<h2>
<ul>
<li><a href="page11.html">Link 1</a></li>
<li><a href="page12.html">Link 2</a></li>
<li><a href="page13.html">Link 3</a></li>
<li><a href="page14.html">Link 4</a></li>
.....
</ul>
</nav>
<h2 id="nav1">title for navigation 1<h2>
<ul>
<li><a href="page11.html">Link 1</a></li>
<li><a href="page12.html">Link 2</a></li>
<li><a href="page13.html">Link 3</a></li>
<li><a href="page14.html">Link 4</a></li>
.....
</ul>
</nav>
....
<nav aria-labelledby="nav2">
<h2 id="nav2">title for navigation 2<h2>
<ul>
<li><a href="page11.html">Link 1</a></li>
<li><a href="page12.html">Link 2</a></li>
<li><a href="page13.html">Link 3</a></li>
<li><a href="page14.html">Link 4</a></li>
.....
</ul>
</nav>