nav element | nav object
[This documentation is preliminary and is subject to change.]
Represents a section of a document that contains navigation links to other documents or to locations within the document.
![]() |
Standards information
There are no standards that apply here.
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Remarks
Windows Internet Explorer 9. The nav element is only supported for webpages displayed in IE9 Standards mode. For more information, see Defining Document Compatibility.
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.
Examples
The following example uses the nav element to indicate that a list contains site navigation links.
<nav>
<h1>Site Navigation</h1>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="gallery.html">Photos</a></li>
<li><a href="news.html">Updates</a></li>
</ul>
</nav>
See also
Build date: 3/8/2012
