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 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!