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 trialDotoria Corny
1,867 PointsWhat is the importance of Alt text?
where does it show? I don't see anything. Can I just put only title and caption?
2 Answers
Joseph Anastos
17,755 PointsThis is important for two reasons. First, sometimes an image might get blocked for whatever reason and not display so the text can explain what is supposed to be there. But more importantly, for those with visual disabilities the screen reader can explain what is on the page and it makes your site more accessible.
Daniel Marlin
8,128 PointsIn addition to what has already been mentioned, the ALT text also helps with Search Engine Optimisation. Search engines like Google cannot identify the content of an image visually like we are able to with our eyes. Instead they read the ALT text which is interpreted as key words
Dotoria Corny
1,867 PointsDotoria Corny
1,867 PointsAlt text is for when hover the mouse over the pic, it'll have the text we type at Alt text box?
Joseph Anastos
17,755 PointsJoseph Anastos
17,755 PointsAlt text is normally used only for accessibility when the image cannot be displayed or if the person is visually impaired. If the image is working normally the alt text will not show. Are you trying to create hover text or are you just trying to understand the function of alt text?
Dotoria Corny
1,867 PointsDotoria Corny
1,867 PointsI try to understand what Alt text is and you clear me now, thank you
It will not show when everything's alright! that's why I don't see it's important, but I just know from you that it has to be there for reason ^^ thanks
Joseph Anastos
17,755 PointsJoseph Anastos
17,755 PointsNo problem, my pleasure. If you don't have any more questions you can mark my answer as best answer which should show it as solved. If you have any other questions always feel free to ask. Have a great rest of the day and good luck on your coding journey!