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 tried to add a image inside a footer,which i did, but it gives me a error saying add alt link to twitter image source.

Need some help with this error. thank yopu

3 Answers

Inside your <img> element you will notice you have the href attribute which tells your page where to find the image. However, that isn't the only attribute the <img> element needs; it also needs another one called alt. The alt attribute is the text that will be shown in place of the image if for some reason it cannot be loaded properly. It also has another range of uses but I won't go into too much detail about them. If you are interested however a quick google search will tell you all that you need to know.

<img href="img/picture.jpg" alt="This is the alt text.">

That is the code that you will need! Best of luck with the rest of your site.

Manoj,

It's fairly important to add the code you've written so that others can see exactly what may be the issue. You can refer to the asking Q's video for the "how to's " Good luck! Though really it's patience!

May Loh
May Loh
5,213 Points

Hi Manoj,

We'll need to see your source code in order to know what went wrong.

Here's a quick tip to post your code in the forum: Wrap your code with 3 back ticks (```) on the line before and after. Specify the language after the first set of back ticks - in this case, it will be html.