W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2006

[whatwg] The IMG element, proposing a CAPTION attribute

From: Dan Brickley <danbri@danbri.org>
Date: Fri, 10 Nov 2006 15:49:55 -0300
Message-ID: <4554C9D3.7090106@danbri.org>
Elliotte Harold wrote:
> Jeff Seager wrote:
>> A better way would be to semantically attach the caption or cutline to 
>> the image itself, so its display is paired naturally. In this way, the 
>> width of the cutline would be dictated (unless overruled in the 
>> stylesheet) by the width of the image. I'm suggesting that CAPTION be 
>> adopted as a new attribute of the IMG element, as it is already for 
>> the TABLE element.
> I don't think caption should be an attribute, an element maybe, but not 
> an attribute.
> The problem is that captions can and do have substructure. For instance, 
> a caption might include multiple emphasized or strongly emphasized 
> sections. Attributes just aren't powerful enough for this.
> Given that, I suspect we're probably better off just using regular 
> paragraphs in text with appropriate CSS instructions rather than 
> introducing a new element.

I agree, attributes are too weak (eg. couldn't support 
http://www.w3.org/TR/ruby/ ).

Received on Friday, 10 November 2006 10:49:55 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:49 UTC