[whatwg] image captions
dolphinling
lists at dolphinling.net
Tue Jun 27 04:42:13 PDT 2006
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/>
More information about the whatwg
mailing list