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

so many things are wrong in this!

ok in the preview my "About"isn't a link and my typing isn't blue OR underlined and it says my navigation needs to be in my header which it hopefully is? I need so much help!

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Natalie Stebbins | My Drawings</title>
  </head>
  <body>
    <header></header>
      <a href="index.html"></a>
        <h1>Natalie Stebbins</h1>
        <h2>My Drawings</h2>
      </a>
      <nav>
      <ul>
        <li><a href="index.html">Portfolio</a></li>
        <li><a href="about.html"></a>About</a></li>
        <li><a href="contact.html">Contact</a></li>
      </ul>
      </nav>
    </header>
  <section></section>
    <p>Gallery will go here.</p>
  <footer>
    <p>&copy; 2014 Natalie Stebbins.</p>
  </footer>
  </body>
</html>

3 Answers

You have two problems in your code first here is the problem section

<header></header>
      <a href="index.html"></a>
        <h1>Natalie Stebbins</h1>
        <h2>My Drawings</h2>
      </a>
      <nav>
      <ul>
        <li><a href="index.html">Portfolio</a></li>
        <li><a href="about.html"></a>About</a></li>
        <li><a href="contact.html">Contact</a></li>
      </ul>
      </nav>
    </header> ```

You have a closing </header> tag right after your <header> opening tag. 
You should only have one closing tag per opening tag. 
The reason the link "about link doesn't work is because you closed the link twice with </a> tags. 
Remove the first one and it should work. 


```html 
<header>
      <a href="index.html"></a>
        <h1>Natalie Stebbins</h1>
        <h2>My Drawings</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> ```

What your final code should look like

If I answered your question it would be much appreciated if I receive an upvote

Hi,

    <header></header>
      <a href="index.html"></a>
        <h1>Natalie Stebbins</h1>
        <h2>My Drawings</h2>
      </a>
      <nav>
      <ul>
        <li><a href="index.html">Portfolio</a></li>
        <li><a href="about.html"></a>About</a></li>
        <li><a href="contact.html">Contact</a></li>
      </ul>
      </nav>
    </header>
  <section></section>
    <p>Gallery will go here.</p>

You are closing the header straight away.

Then in your About link you have 2 closing tags.

So try :

    <header>
      <a href="index.html">
        <h1>Natalie Stebbins</h1>
        <h2>My Drawings</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>
    <p>Gallery will go here.</p>
  </section>

nope, it says my <nav> element should be directly after my <header> element, I do that, then it says it has to be INSIDE the <header> element!

Well this is the what I used to pass that code challenge:

<!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>