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 trialgurpal singh sidhu
1,294 Pointswhy we use alt="" as when i delete this one it doesn't effect the program and the website.
as i delete the alt="" option it doesn't do anything to program and also if i put something in it also has no effect could anyone explain me why and also the function of alt=""
2 Answers
faisal salum
2,573 Pointshi we use alt only when our picture does not show up the alt message that you put will show up to inform the visitor what was there . example.
<img src="img/fb.png" alt="fb-logo">
so when a visitor visit your site but the img has an error and will not show up the alt will show up to inform a visitor that here there were fb logo.
i hope this help.
gurpal singh sidhu
1,294 Pointsthank you very much buddy
faisal salum
2,573 Pointsur welcome