Fandom

HTML & CSS Wiki

Nav

649pages on
this wiki
Add New Page
Comments0 Share

The HTML <nav></nav> element was first introduced in HTML5 and was also introduced in Gecko 1.9.3. This element creates a representation of a section of a page that links to other pages or to parts within the page (a section with navigation links). It must not be a descendant of an <address> element. Not all links of a document must be in a <nav> element, which is intended only for a major block of navigation links; typically the <footer> element has a list of links that don't need to be in a <nav> element. A document may have several <nav> elements, for example, one for site navigation and one for intra-page navigation. User agents, such as screen readers targeting disabled users, can use this element to determine whether to omit the initial rendering of this content.


Attributes

See Global HTML Attributes and Standard HTML5 Attributes.


HTML example:

<nav>
   <ul>  
     <li><a href="1.html">1</a></li>
     <li><a href="2.html">2</a></li>
     <li><a href="3.html">3</a></li>
   </ul>
</nav>

External Links

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.