WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <nav> Tag


Example

A set 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 »

Definition and Usage

<nav>The label defines the part of the navigation link.

Not all HTML documents need to be used <nav> element。<nav> An element is simply used as an area to label a navigation link.

On different devices (mobile phones or PCs), you can specify whether the navigation link is displayed to meet the needs of different screens.


Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Element
<nav> 6.0 12.0 9.0 4.0 5.0 11.1

Differences Between HTML 4.01 and HTML5

The <nav> tag is new in HTML5.