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
The following table will show you the current browser support for the HTML <nav> tag.
| Desktop | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
|
| 12 | 5 | 4 | 11.1 | 5 | |
| Tablets / Mobile | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| 18 | 4 | 11.1 | 4.2 | 1 | 4.4 |
Last updated by CSSPortal on: 30th September 2023






