Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Creating HTML Content Create Navigation with Lists

Joshua Gomes
Joshua Gomes
914 Points

having trouble

i put my <nav> tag under the link the header and a closing </nav> tag but i get it wrong? Help please!

7 Answers

Jason Slabbers
Jason Slabbers
4,447 Points

You must add the nav element after </a> with an unordered list in it.

Joshua Gomes
Joshua Gomes
914 Points

<header> <a href="index.html"> <nav> <ul></ul> </nav> <h1>Nick Pettit</h1> <h2>Designer</h2> </a> </header>

Jason Slabbers
Jason Slabbers
4,447 Points

What code did you use? So I can see whats wrong in your code.

Joshua Gomes
Joshua Gomes
914 Points

i used<nav> <ul></ul> </nav> it is the navigation section of the html courses.

Joshua Gomes
Joshua Gomes
914 Points

the forum isnt showing the coding i typed out?

James Barnett
James Barnett
39,199 Points

Joshua Gomes

> the forum isnt showing the coding i typed out?

Nope.

The forum uses markdown to correctly format code, check out this thread on how to type code in the forum for some examples.

Jason Slabbers
Jason Slabbers
4,447 Points

Here is your answer: <code> <header> <a href="index.html"> <h1>Nick Pettit</h1> <h2>Designer</h2> </a> <nav> <ul></ul> </nav> </header></code>

Jason Slabbers
Jason Slabbers
4,447 Points

''' <header> <a href="index.html"> <h1>Nick Pettit</h1> <h2>Designer</h2> </a> <nav> <ul></ul> </nav> </header> '''

Joshua Gomes
Joshua Gomes
914 Points

Thank you, i just made a mistake of closing the unordered list and the navigation element, when they were supposed to remain open.

Jason Slabbers
Jason Slabbers
4,447 Points

Okay! You're welcome, good luck!