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

Inside the navigation element, create three list items with the words, “Portfolio”, “About”, and “Contact”. Don’t add li

<nav> <ul> <li>"portfolio"</li> <li>"About"</li> <li>"contact"</li> </ul> </nav>

Hi Kranthi,

See this thread for how to post code: https://teamtreehouse.com/forum/posting-code-to-the-forum

5 Answers

The problem is with how it is worded. Let me explain!

In task two the words are " Inside the navigation element, create three list items with the words, “Portfolio”, “About”, and “Contact”. Don’t add links yet."

Those are created inside of the previous element. Like my example below!

This one will not work!

<nav> <ul></ul> <li>Portfolio</li> <li>About</li> <li>Contact</li>

This one will work!

<nav> <ul> <li>Portfolio</li> <li>About</li> <li>Contact</li> </ul>

Erik McClintock
Erik McClintock
45,783 Points

Kranthi,

While I'm still unclear as to what the problem is that you're experiencing or what your code is, perhaps this clarification of the code challenge can help:

It looks like perhaps you may be inserting the words that the challenge is asking for in the second task with quotes around them and mixed capitalization - remove the quotation marks and make sure each word is Capitalized and you should pass the task.

Hope this helps.

Erik

Erik McClintock
Erik McClintock
45,783 Points

Keep in mind, the code challenges are designed to look (usually) for very specific responses, so you should always first try every possible combination that you can think of for the answers that you submit.

Example: if the challenge is asking for you to change the background color of an element, it might accept the shorthand "background: #color;" format, or it might want you to extend that to be more specific, like "background-color: #color;".

Erik

NONE OF THESE WORK!!!!!!!!!

Hi Adrian,

If you want to post your code then I can take a look.

What was posted by Harlan passes through task 2 although the closing nav tag was left off.

Make sure that you have it inside the header but after the link that was already there.

Erik McClintock
Erik McClintock
45,783 Points

Kranthi,

What is the problem? Can you pose your question and post your code?

Erik

<nav> <ul> <li>"portfolio"</li> <li>"About"</li> <li>"contact"</li> </ul> </nav>