HTML <nav> Tag

Description

The <nav> HTML element defines the navigation on the site. If there are several link blocks on the page, then priority links are usually placed in the <nav>. It is also acceptable to use multiple <nav> elements in the document. Do not embed <nav> inside the <address> element.

Properties

Permitted Parents
Any element that accepts flow content
Content
Block, inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<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>

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

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
9125411.15
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes411.14.2Yes

Last updated by CSSPortal on: 6th December 2019