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.
Josie Tang3,260 Points
Why is it important to have a description for 'alt text'?
Thanks for any feedback!
One of the major reasons to use the alt text is because it provides a description in place of the image for those who use screen readers due to certain disabilities or visual impairment. They might not be able to see the image or recognize it but the alt text will give a description of it through the screen reader.
You can get to read more about it by reading - Alternative Text Basics.
Stone Preston42,016 Points
alt text is used to provide a description of the photo to those with browsers that dont display images, image display disabled, or those who have visual impairments and are using screen readers.
The main importance of alt text is that it improves accessibilty.
It also affect SEO
Hazel KenadyFront End Web Development Techdegree Student 16,744 Points
Oziel, Nick's accessibility course is a little order in terms of when it was recorded compared to SEO basics. Adding a caption to images is optional, but if you want to follow good HTML and accessibility standards, you should include alt text with your images if it reinforces the message of the content. Zack uses both captions and alt text correctly in this video: caption is a short description, alt text is a longer or more detailed description about the image. The purpose is so that if the image doesn't load or a person is using a screenreader, they have a better idea of what was in the image. It is my understanding that pretty much what is good for accessibility also happens to be good for SEO.