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 How to Make a Website Creating HTML Content Create Navigation with Lists

where do I place <nav> after header ?

unorder list <nav>

6 Answers

If I may add on to this question just so I understand:

Whether the nav element is inside the header or not is purely about design, not semantics, right?

Tommy Choe
Tommy Choe
38,156 Points

Yes, you're right.

where do I place <nav> after header ?

Hi Yeshi, it depends. When designing your site. You typically want to have your navigation towards the top; however, you might be going for a different design where the navigation is not at the top.

Aaron HARPT
Aaron HARPT
19,845 Points

This code worked for me putting it after the h1 and h2 and a: <nav> <ul> </ul> </nav>

I gave up, I think you need to encode HTML to show what's going on.

Aaron HARPT
Aaron HARPT
19,845 Points

Here it is:

<nav>
      <ul>
      </ul>
      </nav>

thanks alot :)