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

I think i am doing exactly as the question says, but still i am getting an error message . Why ?

why is it asking me to add the "portfolio" list, when i have already done the same?

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> portfolio</li>
        <li> about </li>
        <li> contact </li>

        </ul>

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

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Prateek. Welcome to Treehouse.

The challenges are very specific and picky. The second tasks asks you to "create three list items with the words, “Portfolio”, “About”, and “Contact”. "

Pay very close attention to the words, as they have to match exactly with spelling and capitalization. Your words aren't capitalized. Also, you have some spacing between the tags and your words. All this will cause a Bummer.

Just remove the spaces and capitalize the words and you will be good to go.

You should also be more consistent with the indentations as this will become much more important as you move forward. Please look at the completed and corrected code to see what I mean.

      <nav>
        <ul>
          <li>Portfolio</li>
          <li>About</li>
          <li>Contact</li>
        </ul>
      </nav>

Keep Coding! :)