The HTML <nav>
element represents a section of a page that links to other pages or to parts within the page: a section with navigation links.
Content categories | Flow content, sectioning content, palpable content. |
---|---|
Permitted content | Flow content. |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parents | Any element that accepts flow content. |
Permitted ARIA roles | None |
DOM interface | HTMLElement |
This element only includes the global attributes.
<nav>
element, which is intended only for major block of navigation links; typically the <footer>
element often has a list of links that don't need to be in a <nav>
element.<nav>
elements, for example, one for site navigation and one for intra-page navigation.<nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </nav>
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of '<nav>' in that specification. | Living Standard | No change since latest W3C snapshot. |
HTML5 The definition of '<nav>' in that specification. | Recommendation | Initial definition |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 5 | (Yes) | 4.0 (2.0) | 9.0 | 11.10 | 4.1 |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 2.2 | (Yes) | 4.0 (2.0) | 9.0 | 11.0 | 5.0 (iOS 4.2) |
<body>
, <article>
, <section>
, <aside>
, <h1>
, <h2>
, <h3>
, <h4>
, <h5>
, <h6>
, <hgroup>
, <header>
, <footer>
, <address>
;
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav