[whatwg] Image captions

Thomas Broyer t.broyer at gmail.com
Mon Oct 20 00:43:49 PDT 2008


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


More information about the whatwg mailing list