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

Having trouble with a Challenge in HTML coding

the challenge is to insert a facebook & a twitter image in the footer. I already have the image for facebook in the code. Both the facebook image line code and the twitter image line code have the same alt, the empty quote marks. But when I have the work checked, I'm told to add alt text to my twitter link. At this point I'm not supposed to make the links, just insert the images. Here is the relevant code:

<footer> <ul> <li> <img src="img/facebook-wrap.png" alt=""> <p>Facebook image for link.</p> </li> <li> <img src="img/twitter-wrap.png" alt=""> <p>Twitter image for link.</p> </li> </ul> <p>&copy; 2013 Nick Pettit.</p> </footer>

I'm not told to insert the alt attribute for the facebook-wrap.png, only the twitter-wrap.png

Can anyone explain what I'm missing?

thank you

2 Answers

Robyn Goodwin
PLUS
Robyn Goodwin
Courses Plus Student 10,009 Points

<img src="img/twitter-wrap.png" alt="Twitter Logo">

This is the correct way it should be coded.

Thanks! I'll give that a try!

It worked. :-)