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

just a small question , what does alt in img tag signify ?

when joy changed her picture , she changed name in img tag. okay i got that cause the .jpg name has to be the same as in the tag. but she also changed alt in the image tag. what was that for and what does alt signify ? or what does it do ?

1 Answer

Steven Parker
Steven Parker
243,266 Points

It's a string used for "alternative information" for the image.

It's displayed on the screen if a problem occurs displaying the image, and it's also used by screen-readers for the sight impaired.