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

[whatwg] image captions

From: dolphinling <lists@dolphinling.net>
Date: Tue, 27 Jun 2006 07:42:13 -0400
Message-ID: <44A11995.2030206@dolphinling.net>
Mihai Sucan wrote:
> Le Tue, 27 Jun 2006 13:00:21 +0300, dolphinling <lists at dolphinling.net> 
> a ?crit:
> 
>> fantasai wrote:
>>> I'm wondering what WA1 considers appropriate markup for
>>> a figure with a caption.
>>>  ~fantasai
>>
>> What's wrong with
>>
>> <div>
>>    <img src="">
>>    <p>This is the caption.</p>
>> </div>
>>
>> ? That's how I think of it semantically, and I don't see it as being 
>> common enough to warrant a separate element of its own.
>>
> 
> There's nothing "wrong" with that. Yet, that's not exactly an image 
> caption. There's no explicit association between the <img> and the 
> following <p>.

But there's the implicit association given by the fact that they're 
there, together, in the <div>, and nothing else is. Do you really need 
anything more than that?

-- 
dolphinling
<http://dolphinling.net/>
Received on Tuesday, 27 June 2006 04:42:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC