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 trialMarni Sucher
674 PointsI can't get the links to go to facebook.com and youtube.com. It just goes to my index.html. Help please?
Here is the code
<footer> <a href "http://facebook.com"><img src="img/facebook-wrap.jpg" alt="Facebook Logo"></a> <a href "http://youtube.com"><img src="img/youtube-wrap.jpeg" alt="Youtube Logo"></a> </footer>
14 Answers
Brad Will
534 Points<a href '=' Have you added the = after the href?? That should be your problem fixed when it's added.
James Barnett
39,199 PointsYou forgot the =
in your href attribute.
Marni Sucher
674 Points<!DOCTYPE html>
<html>
<head>
</head>
<body>
<footer>
<a href "http://youtube.com"><img src="img/youtube-wrap.jpg" alt="Youtube Logo"></a>
<a href "http://facebook.com"><img src="img/facebook-wrap.jpg" alt="Facebook Logo"></a>
</footer>
</body>
</html>
Jeff Busch
19,287 Pointshref=
John Satterfield
13,695 PointsHi Marni. It doesn't look like your code has been added to your post. Can you try again please?
John Satterfield
13,695 PointsAre you just pasting your code?
Marni Sucher
674 Pointsyes. that doesn't work?
Jeff Busch
19,287 PointsHi Marni,
If you look to the bottom right of the text box you will see something that says Markdown Cheetsheet. If you don't understand that maybe this will make sense: How to display code at Treehouse
Jeff
John Satterfield
13,695 PointsEither way if you are trying to add a link to html here is what you would use to reference a link: '<a href="www.website.com">link description</a>'
John Satterfield
13,695 PointsLets try this again?
'''html <a href="www.website.com">link description</a> '''
Jeff Busch
19,287 PointsMarni Sucher
674 Pointsfor what?
Marni Sucher
674 Pointsokay that was not easy to do, but if any of you can help me figure out why the links go to my index.html page and not youtube and facebook, i would really appreciate it.
Marni Sucher
674 PointsThank you so much guys! Can't believe I missed that! :)
Brad Will
534 PointsNo problem. I basically followed up on what they all said, but basically so it made more sense to you. Keep on learning, like me :)
Marni Sucher
674 PointsMarni Sucher
674 Points<I am trying to show the code but it wont let me. Why is that?