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

<a href="index.html"> will not link to Portfolio

Work is correct, keep checking it over and over. Wondering if I'm paying for a site that works as well as code academy.

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

6 Answers

Kristopher Van Sant
PLUS
Kristopher Van Sant
Courses Plus Student 18,830 Points

The nav should come after the closing link tag which is below the h2 tag

Why did it let me add the nav and ul in the incorrect space?

Uuuuugh, I'm an idiot. Gettin learned.

Kristopher Van Sant
Kristopher Van Sant
Courses Plus Student 18,830 Points

Noooo! Never call yourself an idiot when it comes to learning new things! It takes time, and it always seems to be the little things that catch us off guard. These are good things to stumble on because it helps you to become more aware of paying attention to the smaller details. Awesome job so far! Keep up the good work :)

Kristopher Van Sant
Kristopher Van Sant
Courses Plus Student 18,830 Points

...also I'm not sure why it let it you pass the first couple of tasks with it incorrect, sorry

Derrick Mull
Derrick Mull
18,518 Points

I believe the challenge is asking you to add an anchor element to each list item. You've wrapped you're nav element with the anchor to index.html, and only linked the first list item to it's proper location.

Instead of index.html do your portfolio page.

Glad it worked! Have fun learning more!

Thank you very much

Wouldn't be telling me I didn't complete the about instead of the portfolio task?

Why is it asking me to anchor a link to Portfolio that directs to index.html? Or I'm not sure what you're saying.

Derrick Mull
Derrick Mull
18,518 Points

index.html is generally the default file that webpages start at... So, Portfolio linked to it would generally mean Portfolio is the HOME or landing page of the site.

Also, Kristopher is correct that in the challenge the whole NAV should come after the H2

Alright I think I see where we're going here. Going to give it a try and if I'm successful Best Answers all around.

A lesson has been learned. Thank you, everyone.