3 ms·
The `alt` attribute is technically required for `img` tags, so if you run your HTML through a validator, or want to shut up IDE/editor warnings, you're going to
by moogly 3y ago
The `alt` attribute is technically required for `img` tags, so if you run your HTML through a validator, or want to shut up IDE/editor warnings, you're going to have to add it. It can be an empty string though IIRC.
- bigDinosaur 3y agoAn empty string is supposed to signal that the image is entirely unnecessary to understand the content.