[whatwg] Definition of alt= attribute

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
<http://annevankesteren.nl/>

Received on Thursday, 19 January 2006 02:44:29 UTC