https://wiki.whatwg.org/api.php?action=feedcontributions&user=MxoRto&feedformat=atomWHATWG Wiki - User contributions [en]2024-03-28T20:16:32ZUser contributionsMediaWiki 1.39.3https://wiki.whatwg.org/index.php?title=Image_Caption_Examples&diff=2381Image Caption Examples2007-07-13T11:53:16Z<p>MxoRto: </p>
<hr />
<div>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.<br />
<br />
These real-world examples provides support for the [[Image Caption]] proposal.<br />
<br />
----<br />
<br />
Some images in the CSS 2.1 specification ([http://www.w3.org/TR/CSS21/colors.html#img-bg-repeat example 1], [http://www.w3.org/TR/CSS21/tables.html#img-cell-align example 2]) use class names to add captions to figures. Reduced to a simpler form, the markup looks like this:<br />
<br />
<pre><br />
<div class="figure"><br />
<p><img src="..." alt="[caption text]"><br />
<p class="caption">[Caption Text]<br />
</div><br />
</pre><br />
<br />
(Note: Removed form this simplified markup is the [D] link to a long description that was put beside the image.)<br />
<br />
----<br />
<br />
Articles form the Salon.com magazine ([http://www.salon.com/opinion/blumenthal/2006/11/16/baker_rescue/index_np.html example]) use this markup for accompaniment photographs:<br />
<br />
<pre><br />
<div class='article_photo_right'><br />
<img src='...'><br /><br />
<p class='article_photo_credit'>Photo: [Photograph's Name]</p><br />
<p class='article_photo_caption'>[Caption Text]</p><br />
</div><br />
</pre><br />
<br />
----<br />
<br />
MacWorld magazine website uses two-row tables to add a caption to screenshots in [http://www.macworld.com/2006/06/firstlooks/flciviv/index.php this article]. Interestingly, they're not using the</div>MxoRto