nav

< html‎ | elements
Jump to: navigation, search

nav

This article is In Progress.


W3C Recommendation

Summary

The HTML Navigation Element (<nav>) represents a section of navigation links: a page that links to other pages, or to parts within the page


Overview Table

DOM Interface HTMLElement


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
5
Yes
?
Unknown
9.0
Yes
11.10
Yes
4.1
Yes

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
2.2
Yes
4.0
Yes
9.0
Yes
11.0
Yes
5.0
Yes

Examples

The following example uses the nav element to indicate that a list contains site navigation links.

HTML

<nav>
 <h1>Site Navigation</h1>
 <ul>
  <li><a href="index.html">Home</a></li>
  <li><a href="gallery.html">Photo</a></li>
  <li><a href="news.html">Updates</a></li>
 </ul>
</nav>

Usage

Not all groups of links on a document need to be in a nav element, only sections that consist of major navigation blocks. In particular, it is common for footer elements to have a short list of links to various documents of a site, such as the terms of service, home, and copyright. The footer element alone is sufficient for such cases, and does not require a nav element.

Note Some devices and applications (such as screen readers) might use the nav element as a way to determine what content on the document to initially skip or provide on request.


Related specifications

Specification Status Related Changes
HTML 5.1 W3C Working Draft
HTML 5 W3C Recommendation

See also

Related articles

Document Structure





  • nav



Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]