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

Can someone help me link list items?

I have written the code just as it appears in the video but it is telling me that I need to link the Portfolio page to the index link. To my knowledge I am doing this correctly. Can someone help me before I put my fist through my computer monitor and then smash it through my window? Please and thanks.

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header> 
      <a href="index.html"> 
        <nav> <ul>
          <li><a href="index.html"> Portfolio </a> </li>
          <li><a href= "about.html"> About </a> </li> 
          <li><a href= "contact.html"> Contact </a> </li> 
          </a> 
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

1 Answer

Steven Parker
Steven Parker
231,198 Points

If we go back to step 1, the challenge said, "Create a navigation element with an unordered list element after the link inside the header." But it looks like instead of putting your new nav element after the link, you put it inside the link, replacing the original contents.

Try starting over, and put the nav element after the end tag of the link ("</a>"). Leave the original code as-is. Also be sure to include ending tags for both your nav and your ul elements when you get to those steps.

Thanks steven!