Why "alt" attribute for <img> tag has been considered mandatory by the HTML validator .. ?
Posted
by infant programmer
on Stack Overflow
See other posts from Stack Overflow
or by infant programmer
Published on 2010-01-15T06:38:09Z
Indexed on
2010/04/23
3:03 UTC
Read the original article
Hit count: 466
Is there any logical or technical reason (with the W3C validation) for making alt as required attribute ..
This is my actual problem:
though my page is perfect enough with respect to W3C validation rules .. Only error I am getting isline XX column YY - Error: required attribute "ALT" not specified
I know the significance of "alt" attribute and I have omitted that where it is unnecessary .. (to be more elaborate .. I have added the image to increase the beauty of my page and I don't want alt attribute to show irrelevant message to the viewer)
getting rid of the error is secondary .. rather I am curious to know whether is it a flaw with validation rules .. ??
I thank stackOverflow and all the members who responded me .. I got my doubt clarified .. :-)
© Stack Overflow or respective owner