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

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!