Skip to content

Latest commit

 

History

History
 
 

debugimages

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Debug images

  • Lists images without width and/or height attributes
  • Lists images with empty alt attributes
  • Lists images with suspicious alt attributes

Copy the script.

Demo output of the image debugging script that lists images with suspicious and empty alts and images with missing width or height attributes

Dimensions

To prevent layout shifts, images should have width and height attributes.

Setting Height And Width On Images Is Important Again

Empty alt

Empty alt attributes are fine, if they're used on decorative images. If not, users of assistive technology might be missing important information.

suspicious content

Accessible Images For When They Matter Most

Sometimes images contain useless information to pass validation or automatic tests. These tests checks if the value of the alt attribute contains any of the following keywords.

  • alt
  • image
  • img
  • logo