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 Use the Navigation Element

Navigation Element not working

When I launch the preview to see if the header elements have turned into links, they haven't. Code looks exactly the same as in the video, and I have tried multiple browsers with the same result.

3 Answers

totally subconscious... never would have noticed thanks man.

Hard to say without seeing the code... are you sure the anchor element contains content/is it wrapping something?

this is my code

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Clementine Brass |Just Brass Tax</title> </head> <body> <header> <a herf="index.html"> <h1>Liam Hamel</h1> <h2>Just Brass Tax</h2> </a> <nav> <ul> <li><a herf="index.html">Portfolio</a></li> <li><a herf="about.html">About</a></li> <li><a herf="contact.html">Contact</a></li> </ul> </nav> </header> <section> <p>Gallery Will Go Here.</p> </section> <footer> <p>Ā© 2014 Liam Hamel.</p> </footer> </body> </html>

this is my code

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Clementine Brass |Just Brass Tax</title>
  </head>
  <body>
    <header>
      <a herf="index.html">
        <h1>Liam Hamel</h1>
        <h2>Just Brass Tax</h2>
      </a>
        <nav>
          <ul>
            <li><a herf="index.html">Portfolio</a></li>
            <li><a herf="about.html">About</a></li>
            <li><a herf="contact.html">Contact</a></li>
          </ul>
        </nav>
    </header>
    <section>
      <p>Gallery Will Go Here.</p>
    </section>
    <footer>
      <p>&copy; 2014 Liam Hamel.</p>
    </footer>
  </body>
</html>