Debugging Missing alt Attributes
An image without a proper alt value is usually the worst idea – but of course, it is possible. We can easily debug the missing attribute or the missing value with the following lines:
Using this code in a live site is not the smartest way, but you can make an own debug toolkit with a bookmarklet – like a11y.css – or load these in a WordPress preview mode which is for only the editors.
Follow us on Twitter
Do you want to support and help us? A Twitter following or a sharing means a lot to us. Thank you!