Should I use alt on "img" or aria-label on "a" to describe the link?
All of the guidelines of WCAG and some related articles suggest to always set the alt
attribute on the img
elements, if the image links to other page, alt
should be the place the image leads to.
But why not setting the aria-label
on the a
element, then we can still have the image description on the img
's alt
?