[whatwg] (IMG / CAPTION discussion)

On Mon, 20 Nov 2006 07:44:07 +0600, Scott Tankard <sptankard at gmail.com> wrote:

> <img id="img1" src="..." title="...">
> That is, an image with a tooltip. While this does contain the wanted benefits
> of nested elements, the obvious increase in sheer size (a bone for those who
> type their code without automation) is coupled with the difficulty of
> matching the tooltip with the element it describes. May I suggest:
>
> <img id="img1" src="..."> <tip>...</tip> </img>

Unfortunately, you can't do that with <img> in HTML without breaking the parsing of existing pages.

Also, I believe this should be "title", not "tip". The semantics of the markup is that the text is the title of the image, and the desire to dipsplay it as a tooltip is presentational.


-- 
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com

Received on Wednesday, 22 November 2006 02:59:51 UTC