Definition list as image caption

Jakob JakoV at gmx.at
Fri Jun 22 12:04:56 EDT 2012



> Von: Waylan Limberg <waylan at gmail.com>

> Hmm, what HTML are you suggesting that output? Standard Definition

> List HTML? How would that translate to a "caption"?


In the meantime I rethought my proposal, but for the sake of being backwards compatible with HTML4: I think it should take a "figure" class (only when it is only images and that definition line), like this:

```
<dl class="figure">
<dt><img alt="alt text" src="http://example.com/img.jpg"></dt>
<dd class="figcaption">the caption</dd>
</dl>
```

like this i would be very similar to the HTML5 stuff (and could be easily handled in CSS with `.figure {}` in HTML4 or just `figure {}` in HTML5):

```
<figure>
<img alt="alt text" src="http://example.com/img.jpg" >
<figcaption>the caption/figcaption>
</figure>
```
--












NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


More information about the Markdown-Discuss mailing list