This is incorrect and against the w3c spec. Use role="presentation" or aria-hidden="true" if it's not needed
this post was submitted on 30 Nov 2024
4 points (83.3% liked)
Web Design
155 readers
1 users here now
Team Web: CSS, HTML, JS, RSS, SVG, XML.
Civility is aggressively enforced: do not be rude, troll-y, flame-bait-y, etc. If someone else is, please report, block as necessary, and move on.
Comments that cannot reasonably lead to discussion or which have no analysis ("first!", "lol", [string of emojis]) will be deleted. Please do not post them.
founded 4 years ago
MODERATORS
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/