[whatwg] Definition of alt= attribute

On Thu, 19 Jan 2006 16:44:29 +0600, Anne van Kesteren  
<fora at annevankesteren.nl> wrote:

>> 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.)

The same could be said about title="", for example:

"An empty value means that there is no title, and no attribute at all  
means that the title is missing." But HTML doesn't declare the title  
attribute as required.


-- 
Opera M2 8.5 on Debian Linux 2.6.12-1-k7
* Origin: X-Man's Station [ICQ: 115226275] <alexey at feldgendler.ru>

Received on Thursday, 19 January 2006 03:01:45 UTC