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

what is it i am doing wrong in the coding.I did everything they asked [me to do

I dont understand what they want from me.I have done exactly what they want,

index.html
<!DOCTYPE html>
<html>
  <head>
    <nav>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
    </nav>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

Exactly what have you been asked to do?

3 Answers

Michael Afanasiev
PLUS
Michael Afanasiev
Courses Plus Student 15,596 Points

Hey Marguis,

You mixed head with header :) I know..it's confusing at first. Your nav should be inside the header tag.

That makes alot of sense.Thank you for the help.I was getting very frustrated at the fact that it woudnt work but it was just me being a idiot.

Michael Afanasiev
Michael Afanasiev
Courses Plus Student 15,596 Points

Trust me, you'll pay more attention next time. That's how we learn!

Afrid Mondal
Afrid Mondal
6,255 Points

Hi Marquis, Actually you have to put the nav element into the header tag not into head tag.

<header>
  <a href="index.html">
    <h1>Nick Pettit</h1>
    <h2>Designer</h2>
  </a>
  <nav>
    <ul></ul>
  </nav>
</header>

No offence, but what help is it just giving the answer?

Michael Afanasiev
Michael Afanasiev
Courses Plus Student 15,596 Points

Hey Phil,

I'm not sure if this was meant for me or Afrid but, I see nothing wrong with giving the answer as long as I see the person did some effort to solve it. If somebody does not bother to think through or even post the code, I will keep on asking probing questions without giving the final solution even if I am 100% sure what he/she is talking about.

Afrid Mondal
Afrid Mondal
6,255 Points

Hey Phil, I know you are trying to help as well as everyone in this system but I think if a person is asking for something and if we get that, then it would be wise to get him the answer just said as Michael.