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

CSS How to Make a Website Customizing Colors and Fonts Use Classes in CSS

What is the <nav> tag for again and when should it be used?

I was trying to remember the purpose of the navigation tab.

3 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Do you know what your Div tag is all about?

If so, then you're not too far away from understanding the nav tag.

When HTML5 came out, it gave us some new "semantic" tags that work the same way as any div tag.

So you can have

<section>
<article>
<aside>
<header>
<footer>
<nav>
<aside>

They work just the same as DIV, but it's just a new way of organising your code so you can put your code into meaningful places. Keeps it organised. :-)

Hope this helps.

It is basically just a tag that is used to help you organize your HTML document. You should put your navigation between the tags.

Ok, thanks!