HTM-000060 | The < nav > Element
The HTML <nav>
tag is an HTML 5 element that defines a section with navigation links in the HTML document. This tag is also commonly referred to as the <nav>
element. The<nav>
element is intended for major navigation information. Just because a group of links are grouped together in a list isn’t enough reason to use the<nav>
element. Site-wide navigation, on the other hand, almost certainly belongs in a<nav>
element. Quite often, a<nav>
element will appear within a header element. That makes sense when you consider that the header element can be used for “navigational aids.”
<nav id=”main_nav”>
<ul>
<li><a href=”/tutorials/”>Tutorials</a></li>
<li><a href=”/techniques/”>Techniques</a></li>
<li><a href=”/examples/”>Examples</a></li>
<li><a href=”/references/”>References</a></li>
</ul>
</nav>
Click here to view the <nav>
example.
Tasks to Complete
- Complete all available resources found in lesson resources.
- Read all content on this page.
- Follow any links and complete quick review.
- There are no assignments associated with this section of the lesson that must be submitted