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

Inside the navigation element, create three list items with the words, “Portfolio”, “About”, and “Contact”. Don’t add li

Inside the navigation element, create three list items with the words, “Portfolio”, “About”, and “Contact”. Don’t add links yet. I need help please I've tried everything

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>

            <l1> Portfolio </l1>
            <l1> About </l1>
            <l1> Contact </l1>

        </nav>
            </ul>

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

4 Answers

Glenré Charl Labuschagné
Glenré Charl Labuschagné
23,204 Points

Hi Ramon,

The proper syntax for list items are li. Read more about the li tag here. Also keep an eye out to close tags correctly within other elements. Currently you have the closing tags </nav> and </ul> in the wrong order.

     <nav>
      <ul>
        <li>List item</li>
      </ul>
     </nav>

Good luck and keep on learning!

Matthew Tran
Matthew Tran
16,343 Points

As mentioned above, you're using l1 instead if li, which is the correct syntax for list items. And your closing nav and ul tags are reversed. You want to nest both the opening and closing ul tags inside the nav tag, which will make it inside the navigation toolbar.

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

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


      </ul>
    </nav>

  </a>

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

</body> </html>

It says Task 1 is no longer passing now

Dan Smith
Dan Smith
2,942 Points

for me too any solutions??