HTML <nav>Tag
Examples
An example of navigation links:
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>
Try it Yourself »
Browser Support
![]()
Most current browsers support the <nav> tag.
Definition and Usage
The <nav> tag defines a section for navigation links.
Not all HTML documents need to use the <nav> element. The <nav> element is only used as an area to mark navigation links.
On different devices (mobile or PC), you can specify whether navigation links are displayed to adapt to different screen needs.
Differences between HTML 4.01 and HTML5
The <nav> tag is new in HTML5.
Global Attributes
The <nav> tag supports global attributes. View the complete attribute table.HTML Global Attributes。
Event Attributes
The <nav> tag supports allHTML Event Attributes。
Other Extensions