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

William Hickok
William Hickok
4,139 Points

why is my hyperlink not working.

My code looks just like the video

5 Answers

William Hickok
William Hickok
4,139 Points

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nick Pettit | Designer</title> </head> <body> <header> <a href="index.html"> <h1>Nick Pettit</h1> <h2>Designer</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 Nick Pettit.</p> </footer> </body> </html>

Matt Barker
Matt Barker
4,465 Points

Hi William,

It looks like you've used

<a herf

instead of:

<a href

Hope that helps!

Matt

Konrad Pilch
Konrad Pilch
2,435 Points

Lots of people says that. You know what? You missed something and it doesn't if it don't work , since HTML outdated, i don't think so. You should post the answer and we can tell you whats wrong.

Please post your code always.

Sarah Thomas
Sarah Thomas
4,190 Points

The tag should read "a href" rather than "a herf"

Hope that helps.

William Hickok
William Hickok
4,139 Points

Thanks, I hatted asking for help on the first lesson. but thank you

Konrad Pilch
Konrad Pilch
2,435 Points

See, not the same :)

Try to post what problem you have, describe it and paste a code. Surery someone will help, like here:)