[whatwg] The IMG element, proposing a CAPTION attribute

Alexey Feldgendler alexey at feldgendler.ru
Wed Nov 15 19:47:26 PST 2006


On Wed, 15 Nov 2006 09:42:11 +0600, Matthew Paul Thomas <mpt at myrealbox.com> 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. :-)

Maybe, or maybe not. I'd say "not recommended" because not all ways of rendering such "labels" allow clicking links and other interactive elements like inputs.


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



More information about the whatwg mailing list