You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2025. It is now read-only.
Michael Hulse edited this page Feb 1, 2021
·
5 revisions
Marking image as decorative
Use an empty alt attribute:
<imgsrc="foo.jpg" alt="">
In theory aria-hidden="true" should work, but it would require the consuming technology to understand aria. An empty alt attribute is the standard for assistive technologies (like screen readers) denoting that the image should be ignored.
If it’s an icon font or <svg> image, add role="img" and aria-hidden="true".