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

obinna okonkwo
PLUS
obinna okonkwo
Courses Plus Student 323 Points

task says i didnt type in portfolio, but i did. after writing 'Portfolio" now task 3 says task 2 isnt right :{

trying to make the list a link. and it says" it looks like task 2 isnt passing, after i already passed task 2. whats wrong pls, and also it says i should make sure i add "portfolio" whcih i did already

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

2 Answers

Steven Ang
Steven Ang
41,751 Points

You didn't properly close your anchor tag which you can see it is highlighted in your sample code. Also, the href value should be all lowercase like the challenge asked or else it won't let you pass. Be careful next time. Make sure all your tags are properly closed.

Your code:

 <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>
        </ul>
      </nav>

The correct code:

 <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>
        </ul>
      </nav>

If your question is answered, please consider selecting any answer that satisfies you as a "Best Answer". This indicates that your question has been answered and can prevent unnecessary posts. Have a nice day and happy coding!s. Have a nice day and happy coding!

obinna okonkwo
PLUS
obinna okonkwo
Courses Plus Student 323 Points

I actually figured it out seconds after I posted the complain. Thanks for the help tho,

Steven Ang
Steven Ang
41,751 Points

lol, careful next time.