Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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:)