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't pass step 3 of Code Challenge

I thought that all the code was correct but keeps telling me that it is wrong. Any help is much appreciated! Thanks!

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

5 Answers

Should the index.html link be right above your H1 tags?

You seem to have links in a link.

Thank you for pointing that out! I hadn't even realized that I did that. I really appreciate your help!

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>
      <a href="index.html"></a><nav>
        <ul>
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
          <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>
Jean Paiva
Jean Paiva
7,128 Points

You put the "h1" and "h2" inside the "nav" tag, they must be inside just the "a" tag

Thanks!

What does the error message say?

The nav tag is right after the first link under the header. The challenge won't allow me to put it under the link which I would do personally.

The nav tag is right after the first link under the header. The challenge won't allow me to put it under the link which I would do personally.

Yes, my bad, I didn't see it at first, what's the error saying?

Oh no problem! It is really awkward were they make you put it. It says that " Portfolio must be linked to index . html"