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 trialBimarsh Sapkota
164 Points<nav> element
I am really not sure about this element and where to insert it. I am stuck in this...
2 Answers
Pedro GCA
20,683 PointsHello Bimarsh, usually the nav element is used to identify the menu of your website. It also usually goes inside the tag header. It is just a kind of identifier and helps you to keep your code organized. Despite the name being different, it works in a very similar way of div id="nav".
Arthur Verschaeve
20,816 PointsThe nav element stands for navigation. The navigation of a website is mostly used to travel between sections/pages of the website. It's a html element, just like a <div> is one, and it can contain any other elements. In most sites the <nav> element contains a set of links. Notice that <nav> is part of HTML5, and you need to use a shim if you want to get it working in old browsers.