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

Task three code is correct, I keep being directed to fix task two. When I return to task two my work is correct.

I am directed at task three that my code changes make task two incorrect. When I recheck task 2 it returns it is correct. Not sure why task 3 code is not correct.

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
      <nav>
        <ul>
          <li> <a href="index.html">Portfilio </a></li>
          <li> <a href="about.html">About </a></li>
          <li> <a href="contact.html">Contact</a></li>
        </ul>    
      </nav>
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Aaron,

Your code is correct, except for a spelling error. You have "Portfilio" instead of "Portfolio." If you fix that, your code does pass all 3 Tasks.

And just an FYI, the "Task # is no longer passing" is a very misleading error. ALWAYS resist the urge to click "Go to Task #". The error is actually in the current task and is usually a syntax or spelling error.

Just fix that spelling error... copy you code above back into the challenge, and it will all pass.

Keep Coding! :) :dizzy:

I cannot believe I missed that. Thanks! :)

Instead of putting your link inside of the list element try wrapping your list element in a link like this...

<nav>
  <ul>
    <a href="index.html"> <li>Portfolio</li></a>
    <a href="about.html"><li>About</li></a>
    <a href="contact.html"><li>Contact</li></a>
  </ul>
</nav>

Hope this helps.

Thanks :)