RE: Empty alt tags

> In principle, you could use an <object> element instead of an <img>
> element, and you would then put the alternate content inside the
> <object> element, and could use e.g. list markup there. And as
> much content as desired. In a sense, <object> tag is kind of
> "<alt> tag". Too bad it doesn't work at present, at least not
> for the purposes of putting images onto Web pages.

Yes. It's a pity that browsers put borders around images included using the
<object> element, but hopefully they will eventually get around to including
them in a nicer manner and we can stop using <img> and alt altogether. Your
idea of an <alt> element would just introduce another thing the browsers
don't support without adding anything to the possible support, since it
duplicates what should be done with object.

Received on Friday, 22 February 2002 10:40:02 UTC