nav element
The HTML element for a block of major navigation links, exposed as a navigation landmark.
In more detail
Give each nav a distinct aria-label, such as Main or Breadcrumb, when a page has more than one. Not every group of links needs nav, only major navigation.
Related terms
- landmark — A region of a page, such as navigation, main content or footer, that assistive technology users can jump between.
- aria-label — An ARIA attribute that gives an element its accessible name directly as a text string.
- semantic HTML — Using HTML elements for their meaning, such as <button> for actions and <nav> for navigation, rather than generic <div>s.
Taught in
- Semantic HTML Elements: Landmarks And Structure — Frontend Architecture & Web Platform
- React Fiber Architecture: Work Units, Priority And Commits — React 19 & Modern Component Architecture