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

Still can't figure out code challenge

<header> <a href="index.html"> <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>

    <h1>Nick Pettit</h1>
    <h2>Designer</h2>

It says that the Portfolio item is not linking to index.html Sorry to be a pain, its just making me tear my hair out! I'm sure it's something stupidly obvious, but I can't see it :/

5 Answers

I have no idea what is wrong here. I got through the challenge but totally disagree with the way the tasks linked together and also with the end result. Have a look at the code here.

I, too, got the "task 1 no longer passes" problem despite going through the tasks and passing. It is also 'passing' tasks when the html is incomplete. I'll report it for a fix.

For now, though, duplicate the link at the top - it is in the wrong place, but humour the machine and complete it looking like a Portfolio link to index.html. That passed for me.

Steve.

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

It looks like you haven't closed your unordered list <ul>.

Try closing it with </ul> just before your first heading element and it should work. :-)

Thank you for your reply. I tried what you said, it is now saying that " task 2 is no longer passing " and took me back to the previous question....

Just don't give up. We experience the most anxiety when we first start to learn something new, especially something as complex as coding, but just hang in there.

I'm having issues with this too - I went through the challenge when I saw your post, Rachael - something seems to be wrong, I think. I'll see if I can figure out what the problem is.

Steve.

Thank you very much for your help and time Steve!

This is one for Nick Pettit to look into.

Nick, can you have a look at the order this challenge works in as it is passing incorrect code and failing correct code.

My screenshot of the pass, above, shows this. Plus, the route the challenge takes passes tasks 1 & 2, then on entering correct code for task 3, it fails task 1. The floating < a > above the < nav > needs to be duplicated, which seems wrong.

Thanks,

Steve.