[whatwg] The IMG element, proposing a CAPTION attribute

Matthew Paul Thomas mpt at myrealbox.com
Tue Nov 14 19:42:11 PST 2006


On Nov 13, 2006, at 7:43 PM, Alexey Feldgendler wrote:
> ...
> I believe HTML should have an element for every attribute intended to 
> hold human-readable text. A raw idea can go like this:
>
> <img id="img1" src="...">
> <label for="img1" type="title">...</label>
>
> Here, <label> holds a value which should be treated the same way like 
> the title attribute on <img>, except that it can contain nested 
> markup. This would be useful for all attributes defined as %Text in 
> HTML -- in HTML4, these are ABBR, ALT, LABEL, STANDBY, SUMMARY, TITLE.
> ...

You would need to stipulate that title= couldn't contain any <a> 
elements. A link in a tooltip would usually be impossible to click. :-)

-- 
Matthew Paul Thomas
http://mpt.net.nz/




More information about the whatwg mailing list