DEV Community

Cover image for HTML tags | nav
Carlos Espada
Carlos Espada

Posted on

HTML tags | nav

It is used to define important navigation with links. It can be repeated within the document but not nested within another <nav>.

If there is more than one, aria-labelledby can be used to improve accessibility using <nav aria-labelledby="primary-navigation">.

It is not necessary to use it inside the <footer>.

It has an implicit ARIA role navigation, and although it is not the main system for discovering information, assistive technologies can use it to decide when to skip the initial rendering of this content.

  • Type: block
  • Self-closing: No
  • Semantic value: Yes

Definition | Example | Support

Discussion (0)