koavf@lemmy.mlM to Web Design@lemmy.ml · 23 days agoAlt Text: Not Always Needed | CSS-Trickscss-tricks.comexternal-linkmessage-square2fedilinkarrow-up15arrow-down11
arrow-up14arrow-down1external-linkAlt Text: Not Always Needed | CSS-Trickscss-tricks.comkoavf@lemmy.mlM to Web Design@lemmy.ml · 23 days agomessage-square2fedilink
minus-squareorockwell@lemmy.worldlinkfedilinkarrow-up1arrow-down1·23 days agoThis is incorrect and against the w3c spec. Use role=“presentation” or aria-hidden=“true” if it’s not needed
minus-squarekoavf@lemmy.mlOPMlinkfedilinkarrow-up2·22 days agoThe W3C explicitly say that decorative images can have empty alt tags: https://www.w3.org/WAI/tutorials/images/decision-tree/ and https://www.w3.org/WAI/tutorials/images/decorative/
This is incorrect and against the w3c spec. Use role=“presentation” or aria-hidden=“true” if it’s not needed
The W3C explicitly say that decorative images can have empty alt tags: https://www.w3.org/WAI/tutorials/images/decision-tree/ and https://www.w3.org/WAI/tutorials/images/decorative/