I mean
<figure><img alt="is matter with figure or not?" src="/test.jpg"></figure>
Or is not needed? I read that this need for photos. “illustrations, diagrams, photos, code listings, etc.”
And if not set with figure? then?
Thanks
I mean
<figure><img alt="is matter with figure or not?" src="/test.jpg"></figure>
Or is not needed? I read that this need for photos. “illustrations, diagrams, photos, code listings, etc.”
And if not set with figure? then?
Thanks
The alt text is used when the image doesn’t load or by screen readers, so that it can still give meaningful information
If it will not give any meaningful info (for example if it is just decoration to the page) you can leave it as alt=""
Otherwise you should always add an alt text