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