nav
This page has been flagged with the following issues:
Content:
Summary
The HTML Navigation Element (<nav>) represents a section of a page that links to other pages or to parts within the page: a section with navigation links
Overview Table
| DOM Interface | HTMLElement |
|---|
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
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 |
|---|---|---|
| HTML5 | W3C Working Draft |
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic Support | 5 | 4 | 9 | 11.10 |
4.1 |
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic Support | 2.2 | Unsupported | ? | 4 | 9 | ? | 11 | 5 |
Compatibility notes
| Browser | Version | Note |
|---|---|---|
| Internet Explorer | 9 | The nav element is only supported for webpages displayed in IE9 Standards mode. |
See also
Related articles
Document Structure
- nav
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here