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

Noe Bortolussi
Noe Bortolussi
1,287 Points

Is imposible the answer to this exercise (3/3) when I try to pass the 3 the exercise 2 is wrong so I have to back and...

What about this exercise???

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>


            <h1>Nick Pettit</h1>
        <h2>Designer</h2>


       <nav>
         <ul>

           <li><a href="index.html">Portfolio</a></li>
           <li><a href="about.html">Abolut</a></li>
           <li><a herf="contact.html">Contact</a></li>
         </ul></nav>

    </header>

    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

3 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi Noe! I'm not exactly sure how this happened, but the <nav> is supposed to start immediately after the link in the header. But your header no longer contains a link. The original header looked like this:

 <header>
      <a href="index.html">
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
     <!-- the <nav> should begin here -->
    </header>

Also you've managed to misspell "About". Here's your code:

<li><a href="about.html">Abolut</a></li> <!-- you've typed "Abolut" -->

So try rebuilding the link part in the header and then fix the spelling error and see if you can get past the challenge. But let me know if you're still stuck! :sparkles:

  • You misspelled 'href' for your contact.
  • You misspelled 'About' in your nav menu.
  • You accidentally erased their anchor tag that wrapped both the h1 and h2 tags.
<!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>
           <a href="index.html"><li>Portfolio</li></a>
           <a href="about.html"><li>About</li></a>
           <a href="contact.html"><li>Contact</li></a>
         </ul>
      </nav>
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>
Noe Bortolussi
Noe Bortolussi
1,287 Points

Thanks you guys!! Jennifer and Phillip ;)