HTML <nav> tag

Definitie en gebruik

<nav> De tag definieert een groep navigatielinks.

Let op, niet alle links moeten worden geplaatst in <nav> Binnen het element.<nav> Het element wordt alleen gebruikt voor de hoofd-navigatielinkblokken.

De browser (bijvoorbeeld voor schermlezers) kan dit element gebruiken om te beslissen of deze inhoud moet worden weggelaten bij de initiële render.

See also:

HTML DOM reference manual:Nav object

Example

A set of navigation links:

<nav>
  <a href="/html/">HTML</a> |
  <a href="/css/">CSS</a> |
  <a href="/js/">JavaScript</a> |
  <a href="/python/">Python</a>
</nav>

Try it yourself

Global attributes

<nav> The tag also supports Global attributes in HTML.

event attributes

<nav> The tag also supports Event attributes in HTML.

Default CSS settings

Most browsers will display the following default values <nav> Element:

nav {
  display: block;
}

Browser support

The numbers in the table indicate the first browser version to fully support this tag.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
5.0 9.0 4.0 5.0 11.1