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

Code challenge: href for Portfolio, About and Contact

The question asks for you to: Link each of the three list items. Portfolio should go to “index.html”, About should go to “about.html”, and Contact should go to “contact.html”.

I have done this and it is telling me Portfolio needs to go to "index.html" which I have done but it's telling me it's wrong.

Here is my code:
<nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li>
</ul> </nav>

Any help is appreciated.

MODERATOR EDIT Changed category of question to match content (HTML instead of Design)

1 Answer

Is this for the challenge https://teamtreehouse.com/library/create-navigation-with-lists?

I copied your code above and it seems to work fine; have you placed the code within a nav tag?

I re-did the challenge and it went fine.. I don't know why it wouldn't accept my answer the first time around because I did the same thing. Thanks again Lindsay