koavfM to Web Design · 2 months agoAlt Text: Not Always Needed | CSS-Trickscss-tricks.comexternal-linkmessage-square2fedilinkarrow-up15arrow-down11
arrow-up14arrow-down1external-linkAlt Text: Not Always Needed | CSS-Trickscss-tricks.comkoavfM to Web Design · 2 months agomessage-square2fedilink
minus-squareorockwell@lemmy.worldlinkfedilinkarrow-up1arrow-down2·2 months agoThis is incorrect and against the w3c spec. Use role=“presentation” or aria-hidden=“true” if it’s not needed
minus-squarekoavfOPMlinkfedilinkarrow-up2·2 months 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/