Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Collin Hadley
Collin Hadley
955 Points

What is the <nav> </nav> element used for?

I remember using this one once, but I need a memory refresher!

Timothy Boland
Timothy Boland
18,237 Points

these are all good answers, you should select a Best Answer :-)

3 Answers

Well for nav…igation, menus and such that let you navigate a website

Hunter Cassidy
Hunter Cassidy
5,674 Points

It's a more semantic tag than using a standard div for navigation. Common use case:

<nav>
   <ul>
      <li>nav_item_1</li>
      <li>nav_item_2</li>
   </ul>
</nav>
Sara Read
Sara Read
10,476 Points

It is used for 'navigation' elements. You can make a list inside of the <nav> tags for each navigation element/link/icon.