← All notes

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

Sources

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

Permanent ID: iil:note:eyqjfmrv

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.},
}

Markdown

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.

All artifact files (JSON index)

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.