On this page
<nav>
Prev: `<header>` | Up: landmarks | Next: `<main>`
Rel: landmarks, Document & Landmarks Guide
Ref: MDN Web Docs — <nav>
Tags: #public #web #html #elements #landmarks #tier/core
Summary
Major navigation link block.
- Implicit ARIA Role:
navigation - DOM Interface:
HTMLElement - Key Attributes:
aria-label
Notes & Best Practices
- Reserve for major navigation blocks (not every group of links), and add
aria-labelwhen a page has more than one<nav>(e.g., primary vs. breadcrumbs).
Example
<nav aria-label="Breadcrumb">
<ol>
<li><a href="/">Home</a></li>
<li aria-current="page">Guides</li>
</ol>
</nav>
Linked from
Related notes
- tuts/html/elements/landmarks/header Linked here; links to this page; shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/main Linked here; links to this page; shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks Linked here; links to this page; shared tags: #elements, #html, #landmarks, #web
- tuts/html/elements/document_and_landmarks Linked here; shared tags: #elements, #html, #web
- tuts/html/elements/landmarks/article shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/aside shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/body shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/footer shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/head shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/html shared tags: #elements, #html, #landmarks, #tier, #web