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 HTML Basics Images, Text and Links Captioning Images

Hello. Could it be that you meant to say at 2:21 the figcaption is closely related to the title attribute, instead alt?

The title of the question says it all. I mean the alt also seems to be related, however I think it does not make sense to put a caption for what you see literally in the picture.

1 Answer

Hi Borian!

Title, Alt, and Captions all have their place.

A caption, which is usually the text under the image can offer an explanation (additional information) to enhance the image.

Some examples:

"The Sundial Bridge at Turtle Bay in Redding, CA"

"Photo by Borian Moldfach"

"The Leukemia Lymphoma Society Fundraiser"

"A Private Food and Wine Event at ‚ÄčThe Oakmont Country Club in Glendale, CA"

BTW, providing verbose and accurately descriptive titles, alts, and captions all help SEO.

More info:

https://usabilitygeek.com/website-image-usability-and-seo-best-practices/

https://contentmarketinginstitute.com/2019/03/optimize-images-seo/

https://www.wordstream.com/blog/ws/2019/05/08/image-seo (see point #5)

I hope that helps.

Stay safe and happy coding!