W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] Image captions

From: Oldřich Vetešník <vetesnik@mrmil.cz>
Date: Mon, 20 Oct 2008 09:23:20 +0200
Message-ID: <op.ujbas6yyo84pey@pc08.ebrana.cz>
What do you think about this:

Q: How would it be possible to integrate captions for images using html?

A: 1. Using something similar to <caption> element. Extra markup needed  
    2. Using an attribute to display it: <img src="/path/chart.jpg"  
alt="Amount of pregnant rats in year 2007" caption="caption" />.
       This would show the caption below the image by default (visual style  
and position done by css), its source would be the alt attribute (to avoid  
duplicate content). I don't know if that's possible though.

If there have been made any researches or suggestions already, please let  
me know, thank you.

- Ollie
Received on Monday, 20 October 2008 00:23:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC