Difference between revisions of "Image Caption Examples"
(Precised relation with the Image Caption page.)
Revision as of 14:08, 17 November 2006
This page is a collection of sample usage for images with captions from around the web. Markup samples provided here have been reformatted and often simplified by removing presentational elements to better illustrate what "defines" the figure in them.
These real-world examples provides support for the Image Caption proposal.
<div class="figure"> <p><img src="..." alt="[caption text]"> <p class="caption">[Caption Text] </div>
(Note: Removed form this simplified markup is the [D] link to a long description that was put beside the image.)
Articles form the Salon.com magazine (example) use this markup for accompaniment photographs:
<div class='article_photo_right'> <img src='...'><br /> <p class='article_photo_credit'>Photo: [Photograph's Name]</p> <p class='article_photo_caption'>[Caption Text]</p> </div>
MacWorld magazine website uses two-row tables to add a caption to screenshots in this article. Interestingly, they're not using the <caption> element with is meant to be used inside <table>. By using it, they could have saved themselves the trouble of specifying a width for each of their screenshots without having the image description extending the table. Here is a simplified version of the markup used on this page:
<table width="310" align="right"> <tr><td> <img src="..."> </td></tr> <tr><td> <p>[Caption Text or Image Description]</p> </td></tr> </table>
Wikipedia thumbnail image with caption can be reduced to this once the links are removed:
<div class="thumb tright"> <img src="..." alt="[Caption Text]" longdesc="..." /> <div class="thumbcaption"> [Caption Text] </div> </div>
Some documents (example) simply put the caption text inside the image.
<div> <a name="..." title="[Caption Text]"></a> <p>[Caption Text]</p> <img src="..." alt="[Caption Text]"> </div>
<div class="figureFM"> <a name="..." id="..."></a> <img src="..."/> <h5>[Caption Text]</h5> </div>
<table WIDTH="346"> <tr><td> <img align=top src="..." ALT="Photo of Position 1"> </td></tr> <tr><td> Position 1 </td></tr> </table>