[whatwg] Image captions

Hi Ollie,

On Mon, Oct 20, 2008 at 9:23 AM, Old?ich Vete?n?k wrote:
> Hello WHATWG,
> What do you think about this:
>
> Q: How would it be possible to integrate captions for images using html?

http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-0.html#the-figure-element

<figure>
<img src="/path/chart.jpg" alt="Amount of pregnant rats in year 2007">
<legend>caption</legend>
</figure>

or eventually just:

<figure>
<img src="/path/chart.jpg">
<legend> Amount of pregnant rats in year 2007</legend>
</figure>

-- 
Thomas Broyer

Received on Monday, 20 October 2008 00:43:49 UTC