What is the difference between img alt attribute and figcaption?

Hello,
Could you please tell me what is the difference between img alt attribute which also describes an image and a figcaption which is also used for description?
Thanks

As per me Img alt attribute is use to define the image like title of the image with little description. Hope other can guide you more appropriate.

1 Like

Hello @ajax8141218042, welcome to the forums! This article may help. Essentially, the difference is the <figcaption> is rendered on the user’s screen, where alt is only displayed if the image doesn’t render.


A secondary difference is that <figcaption> is a tag/element, where alt is an attribute…

2 Likes

Thanks a lot, it was helpful

1 Like