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 Add Social Media Links

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

<I am trying to show the code but it wont let me. Why is that?

14 Answers

<a href '=' Have you added the = after the href?? That should be your problem fixed when it's added.

James Barnett
James Barnett
39,199 Points

Marni Sucher -

You forgot the = in your href attribute.

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

href=

John Satterfield
John Satterfield
13,695 Points

Hi Marni. It doesn't look like your code has been added to your post. Can you try again please?

John Satterfield
John Satterfield
13,695 Points

Are you just pasting your code?

yes. that doesn't work?

Hi 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
John Satterfield
13,695 Points

Either 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
John Satterfield
13,695 Points

Lets try this again?

'''html <a href="www.website.com">link description</a> '''

for what?

okay 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.

Thank you so much guys! Can't believe I missed that! :)

No problem. I basically followed up on what they all said, but basically so it made more sense to you. Keep on learning, like me :)