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

Every time I complete task 1 it sends me to task 2 and tells me task 1 is no longer passing?

I'm working on "How to Make a Website" and the first task was to create a nav element for the link with an unordered list that had no names. I pass it and move on to the second task which is to add the names Portfolio, About and Contact to the list items. When I do this, it tells me task 1 is no longer completed. When I go back to task 1 and tell it to check my work again, it says everything is correct. I don't understand what I'm doing wrong.

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>

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



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

      </a>
     </nav>
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

2 Answers

Ryan Field
PLUS
Ryan Field
Courses Plus Student 21,242 Points

Hi Timothy,

Your nav and ul elements need to go after the anchor tag. This means that you need to make the whole nav element after the closing anchor tag here, like this:

       <a href="index.html">
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
      <nav>
        <ul>
          <li>Portfolio</li>
          <li>About</li>
          <li>Contact</li>
        </ul>
     </nav>

Hey Ryan, thank you for responding so fast! I went back and watched the video again and saw as you just mentioned that my <nav> tags were in the wrong place. I guess I should try that first next time before asking you guys. Sorry, and thanks again!

Ryan Field
PLUS
Ryan Field
Courses Plus Student 21,242 Points

You're absolutely welcome, and don't apologize! We're here as a community to learn together and help each other out! If anything, ask more questions when you're stumped after trying something yourself! Good luck, and keep going! :D