HTML navigation: group links with nav and accessible labels
Answer: Navigation groups lists of links. The best element to use for navigation sections is nav.
Kinds of navigation
Local navigation covers named anchors and links to other pages on the same site.
A site map is a page of hierarchical links to every page on the site.
Global navigation leads to top-level pages and often appears on every page, as a bar, drop-down, or flyout.
The same site may show that global navigation differently at different viewport sizes.
nav, labels, and skip links
Use nav for navigation sections; it exposes a navigation landmark to screen readers and search engines.
aria-label can briefly state the purpose of that navigation.
Do not put the word navigation in that name when you already used nav, because the element already provides it.
The link target should be the beginning of the page's main content. When the link gets focus, the link must be visible to the user.
See also
Claims
- id: C1 claim: Use the nav element for navigation sections. source: S1 evidence: "The best element to use for navigation sections is <nav> ."
- id: C2 claim: aria-label can briefly describe the navigation's purpose. source: S1 evidence: "Include the aria-label attribute for a brief description of the purpose of the navigation."
- id: C3 claim: A skip link should target the start of the main content. source: S2 evidence: "The link target should be the beginning of the page's main content."
- id: C4 claim: The link must be visible when it receives focus. source: S2 evidence: "the link must be visible to all users"
Sources
- [S1] Navigation. web.dev. https://web.dev/learn/html/navigation . License: CC-BY-4.0. Accessed 2026-11-26.
- [S2] Navigation (source). web.dev. https://raw.githubusercontent.com/GoogleChrome/web.dev/main/src/site/content/en/learn/html/navigation/index.md . License: CC-BY-3.0. Accessed 2026-11-26.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Navigation; web.dev, Navigation (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: web.dev, Navigation; web.dev, Navigation (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License.
Cite this
iinventedlight. 2026. "HTML navigation: group links with nav and accessible labels." iinventedlight Library, iil:note:eyqjfmrv, version of 2026-11-26. https://iinventedlight.com/library/notes/html-navigation/. License: CC-BY-4.0.
@misc{iil_note_eyqjfmrv,
author = {{iinventedlight}},
title = {{HTML navigation: group links with nav and accessible labels}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-26},
url = {https://iinventedlight.com/library/notes/html-navigation/},
note = {Permanent ID iil:note:eyqjfmrv. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- html-navigation.schema.json (schema; CC-BY-4.0)
- html-navigation.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/html-navigation.md.