[whatwg] Definition of alt= attribute

Matthew Raymond mattraymond at earthlink.net
Sat Jan 21 04:20:48 PST 2006


Anne van Kesteren wrote:
> Quoting Matthew Raymond <mattraymond at earthlink.net>:
>>   Hmm... Is <img> ever non-presentational? Radical thought: Deprecate
>> <img>.
> 
> A company logo?

   You could make an argument that trademarks have semantic value, but
it's kinda weak, because you can identify the company by name as well.
Here's some markup:

| <h1 style="content: url(logo.png)">Company Name</h1>

   (Not sure I got the CSS right, but you get the idea.)

> A picture of a new product some review is about?

   Much better example. That probably is semantic, yes.

   However, is there any situation where <object> couldn't be used
instead of <img>?



More information about the whatwg mailing list