There are two ways to specify "accompanying text" with images in HTML:
altattribute- a separate
<figcaption>element.
<figure>
<img src="pic_trulli.jpg" alt="Trulli" style="width:100%">
<figcaption>Fig.1 - Trulli, Puglia, Italy.</figcaption>
</figure>
In terms of accessibility, what's the difference between the two? What would be appropriate values to put in those slots? For example, should the alt be a visual description of the picture, and <figcaption> a contextual description?
Input from visually impaired users would be greatly appreciated! Extra suggestions are welcome.
