The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Exclude alt atribute from images? (HTML5)
Is there anyway to exclude the alt="" attribute from the img tag while still successfully validating as HTML5? From what I’ve read, the attribute can be excluded, but when validating errors will exist…
alt=""
img
Basically…no.
The attribute exists for a reason. Now you may not wish to serve that part of your audience and that’s entirely up to you.
Validation is not mandatory…you can ignore it if you wish.