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

Daniel Schmid
Daniel Schmid
15,466 Points

href attribute

In this code challenge It says I need to link to "index.html" and this is what I have done but it still says that is wrong. I'm not sure if I am missing something or entered something in wrong.

2 Answers

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Daniel Schmid,

Can you paste your code into a comment here on the forum? That will make it much easier for us to figure out what's wrong. :)

Daniel Schmid
Daniel Schmid
15,466 Points

The code i have put in is this:

<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>

And the challenge is this: 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โ€.

tells me that the Portfolio list item should link to "index.html".

Dave McFarland
Dave McFarland
Treehouse Teacher

Daniel Schmid. To show your HTML in the forum you need to first type 3 backtick characters, then your HTML code, then 3 more backtick characters.

The back tick character looks like this -- ` -- and is found on the same key as the ~.

Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Daniel Schmid,

I updated your forum post so that the code will be displayed correctly. You can click the "edit" link to see how it's done in case you need to post code in the future. :)

To answer your question, it looks like the href attribute for contact has its value capitalized. It should be "contact.html" and not "Contact.html" which are technically two different links due to case sensitivity.

Daniel Schmid
Daniel Schmid
15,466 Points

Great, thats good to keep in mind :)

thanks

Dan