<nav> element – represents a group of navigational links.
Usage: typically used to contain links to other documents or other spots within the current document. We often code a series of links as an unordered list (and then apply styles so the list appears either vertically or horizontally per the page design).
Permitted Content: must not appear as a descendent of the <address> element.
Tag omission: both start and end tag must be present.
Example code:
<nav>
<ul>
<li><a href=”#”>Home</a></li>
<li><a href=”#”>About</a></li>
</ul>
</nav>
Example page (opens in a new tab/ window – view source code):
- http://learning-html5.info/examples/BasicWeblogText.html (note: this page has no CSS styling, it is simply intended to show the overall structure of the HTML5 page).
Default display properties: display: block.
Common Attributes: typical global attributes only.
Permitted Parent Elements: any element which can containĀ flow elements.
References: