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

Even i type right, I couldn't move next. Please, could some one help me.

The error msg: add portfolio to list item.

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>
         <nav>
     <ul>
        <li>Portfolio</li>
        <li>About</li>
        <li>Contact</li>

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

4 Answers

The error Treehouse is giving you is not the actual problem. The problem is that you have two nav tags, one inside each other. Look at the code Akshay posted, do you see how it only has one nav tag? Try it like that.

The reason Treehouse sometimes gives the wrong error is because computer error checkers are not smart! It knows there should be a nav tag, followed by a list item that says Portfolio. Instead it saw another nav tag, and it just stopped there to say "this line is wrong!" The error checker is not smart enough to notice that you put the correct line somewhere else in the code, or to change the error message to tell you exactly what you did wrong.

Look closely at your nav element. Do you remember how many there are supposed to be?

Edit: sorry, I forgot a word so my answer didn't make sense!

<!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>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav> </header> <section></section> <footer> <p>Ā© 2013 Nick Pettit.</p> </footer> </body> </html>

Why u want 2 nav??

Guys, I couldn't find what is wrong. I Inserted a nav tag with ul command with list . It is showing a error msg as add portfolio to the list. But I had already added It.

Thank you very much.