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 Nav ?

What's the function of it ?, and what visible changes it makes to my code at the time of displaying it ?

1 Answer

Gary Calhoun
Gary Calhoun
10,317 Points

Its more for semantic purposes, the nav tag its an HTML 5 element so browsers know that inside there is a navigation and screen readers are able to read it and decide if they want to display it. Design wise its no different then your standard div element however I wouldn't use a nav tag to wrap an image gallery for example it wouldn't make sense.