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 trialJoshua Wolfe
1,897 PointsShould I use a <ul> <nav> & <div> when setting up a nav bar?
Im pretty sure that the <nav> is semantic markup, but it seems to work just fine w/o a <ul>. Why use a <ul>? How does the <div> help? Do I need all three? I understand them individually, im having trouble seeing why I would use all 3.
2 Answers
David Reid
19,691 PointsYou don't need to use a div in the menu unless you really want to wrap it. Use <nav> as the container then you need <ul> to contain you <li> items. Hope that helps :)
Joshua Wolfe
1,897 PointsOk, cool. Maybe that'll help with the centering horizontal nav links problem. lol. But that does help.