[whatwg] Definition of alt= attribute

Anne van Kesteren fora at annevankesteren.nl
Thu Jan 19 02:44:29 PST 2006

Quoting Alexey Feldgendler <alexey at feldgendler.ru>:
> I wonder why alt is a required attribute for IMG in HTML while an 
> empty  value is allowed.

Because an empty value means that there is no alternate text and no 
attribute at
all means that alternate text is missing. (Which is clearly not what 
you want.)

Anne van Kesteren

More information about the whatwg mailing list