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

Challenge task 1 of 3

Screenshot of my code attached. Everything looks good, aside from the error message. Anyone see anything unusual? Let me know! (screenshot below)

https://lh5.googleusercontent.com/-M5UwzSfmLQE/U7ygaoJBX5I/AAAAAAAAArw/xYMMyu9no44/w1020-h722-no/Screen+Shot+2014-07-08+at+6.50.11+PM.png

3 Answers

Guy Noda-Bailey
Guy Noda-Bailey
18,837 Points

I think the problem might be that you have put the nav element inside the link in the header as opposed to directly under it.

try moving the entire nav to just under the closing </a> tag.

Guy Noda-Bailey
Guy Noda-Bailey
18,837 Points

Yep, I tried it out, looks like this should pass....

    <header>
      <a href="index.html">
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>  <!--- You want to make sure this closing tag is before your nav -->
      <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>

In your screen shot the nav was inside the link with the h1 and h2 headings.

Guy Noda,

Thanks for the help. Much appreciated, I think you've nailed it.

I'm wondering why you're getting that error message. Unless it wants you to link them like so:

<a href="index.html"><li>Portfolio</li></a>

Haven't taken the quiz myself, but that's all I can think of.