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

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

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

Can you add your code?

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

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

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

the forum isnt showing the coding i typed out?

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.

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

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

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

Okay! You're welcome, good luck!