Description:

The HTML <nav> tag is used for declaring a navigational section of the HTML document.

Websites typically have sections dedicated to navigational links - links that enable the user to navigate the site. These links should be placed inside a <nav> tag.

Example Code:
<nav>
  <a href="/">Home</a> |
  <a href="/css-validator/">CSS Validator</a> |
  <a href="/html-tags/">HTML Tags</a> |
  <a href="/contact.php">Contact</a>
</nav>
Result:
Attributes:

None

Global Attributes:

The <nav> tag also supports the Global Attributes in HTML5

Event Attributes:

The <nav> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.