Created
April 5, 2021 17:01
-
-
Save cameroncowden/d411eacd010c277b4d46d31ee7f0701b to your computer and use it in GitHub Desktop.
Highlight all Images without Alt Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Courtesy of @AllThingsSmitty "sharing is caring" https://twitter.com/AllThingsSmitty/status/930617039085035520 */ | |
/* highlights any images on the page without alt text or with empty alt text */ | |
/* note - sometimes empty alt text is correct: https://www.w3.org/WAI/tutorials/images/decorative/ */ | |
img[alt=""], img:not([alt]) { | |
border: red 5px solid; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment