[whatwg] image captions

Le Tue, 27 Jun 2006 14:42:13 +0300, dolphinling <lists at dolphinling.net> a  
?crit:

> Mihai Sucan wrote:
>>  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?

Yes.

That's because <div> does not properly serve this purpose. Your suggestion  
is overusing <div>.

Can an aural browser be sure your markup is actually representing an image  
with its caption?

You could also use:

<div class="image-caption">
<img />
<p>caption</p>
</div>

However, this looks like a microformat. Nonetheless, it's better than  
leaving out the class attribute.


-- 
http://www.robodesign.ro
ROBO Design - We bring you the future

Received on Tuesday, 27 June 2006 05:36:09 UTC