HTML <nav> Tags


A set of navigation links :

  <a href="/html-introduction/">HTML</a> |
  <a href="/css-introduction/">CSS</a> |
  <a href="/js-introduction/">JavaScript</a> |
  <a href="/jquery-introduction/">jQuery</a>
Execute Code

Definition and Usage

The <nav> tag defines a set of navigation links.

Notice that NOT all links of a document should be inside a <nav> element. The <nav> element is intended only for major block of navigation links.

Browsers, such as screen readers for disabled users, can use this element to determine whether to omit the initial rendering of this content.

Browser Support

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

Element Chrome Internet Explorer Firefox Safari Opera
<nav> 6.0 9.0 4.0 5.0 11.1

Differences Between HTML 4.01 and HTML5

The <nav> tag is new in HTML5.

Default CSS Settings

Most browsers will display the <nav> element with the following default values :

    display: block;