[whatwg] image captions
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.
>> What's wrong with
>> <img src="">
>> <p>This is the caption.</p>
>> ? 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?
More information about the whatwg