Name
nav — HTML5
Synopsis
<nav> . . . </nav>
Represents a section of the document intended for navigation.
Not all lists of links are appropriate for nav
, only those that represent major
navigation blocks on a page or within a section. The links within a
nav
element can be to other
documents or to other areas within the current document.
Notes
HTML5 only.
Start/End Tags
Required/Required
Attributes
HTML5 Global Attributes
Example
<nav> <ul> <li><a href="">About us</a></li> <li><a href="">Contact</a></li> <li><a href="">Home</a></li> </ul> </nav>
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.