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 trialJonathan Baumgarten
Courses Plus Student 1,467 PointsWhy wasn't <nav> used to wrap <h1> or <h2> but used for the three <li>'s??
Why was the navigation element only used with regard to listing and not originally by anchoring the header?
4 Answers
Hugo Ballesteros
15,945 PointsThe <nav> tag in new in HTML5 and usually used to defines a set of navigation links. Also take into account that IE8 and earlier versions don't support the tag so I would not advise you to use it to wrap. For which purpose you want to use this tag?
Jonathan Baumgarten
Courses Plus Student 1,467 PointsIn the instruction video "Nick Pettit" used it to wrap an unordered list of links. So I was wondering why he used it to wrap the three links: "Designer, About, and Contacts" , but didn't use it to wrap the h1 and h2 elements. Thanks!
Hugo Ballesteros
15,945 PointsIn HTML we had the "div" tag, with the advent of HTML5 besides the "div" tag have defined a specific tags for more orderly Markup Structure. Each of these tags is for a particular use; obviously you can use it wherever you want but it is not recommended. In the following link you can see some of them:
Jonathan Baumgarten
Courses Plus Student 1,467 Pointsok thank you!