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

How do I add the word Portfolio as a list item after the navigation element?

How do I add a list item with the word Portfolio in it after the navigation element?

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

You do have it as a list item, maybe you mean something else, explain better? If you we're seeing why it doesnt work, its because its not inside the "unordered list" or the <ul> tag, make sure you get the "list item" <li> inside the <ul> tag like this:

<!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>

2 Answers

You have the right idea but you need to nest your list items (li tags) inside your ul tags. Your code should be:

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

I didn't notice I had a request until just now.

The previous people are correct. You had your list items before your opening, unordered list tag. Sakib and Emilio's examples should be correct.