DEV Community

Cover image for HTML tags | nav
Carlos Espada
Carlos Espada

Posted on • Edited on

1

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 and example | Support

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more