If you run <img src="..." alt />
through the validator, it throws an error. The alt
attribute needs a value, even if it is null alt=""
. Usually when an image doesn't have an alt, some assistive technology announces the path to the image.
So <img src="..." alt />
is the same as <img src="..." />
. Usually the word used is decorative vs trival, but it is probably the same idea. These type of images should have a null alt.