HTML <nav> (Navigation) Tag

❮ Previous Reference Next ❯


  <a href="home.html" >Home</a>
  <a href="about.html" >About</a>
  <a href="contact.html" >contact</a>


The <nav> element represents a group of links to other locations either inside or outside of a document.

Links are not restricted to occur solely within <nav> elements.

The intent of this element is that it collects navigation together often as a unit; commonly this would be primary or secondary site navigation or possibly page-related links.

A document may have several <nav> elements.

Version: HTML5

Standard Syntax


Browser Support


Global Attributes

The <nav> element also supports the Global Attributes in HTML.

Event Attributes

The <nav> element also supports the Event Attributes in HTML.

By Default CSS Value(s)

Most of the browsers will display the <nav> element with the following by default value(s)

nav {
	display: block;

❮ Previous Reference Next ❯