W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

[whatwg] image captions

From: Mihai Sucan <mihai.sucan@gmail.com>
Date: Wed, 28 Jun 2006 19:51:31 +0300
Message-ID: <op.tbu7r5qgmcpsjg@localhost.localdomain>
Le Wed, 28 Jun 2006 18:47:13 +0300, Hugh Winkler <hughw at wellstorm.com> a  
?crit:

> How about an anchor with rel="caption":
>
> <a rel="caption" href="#caption1"><img src="x.jpg"/></a>
> <span id="caption1">man bites dog</span>
>
> or
>
> <img id="img1" src="x.jpg"/>
> <span id="caption1"><a rel="caption" rev="#img1">man bites  
> dog</caption></span>

I like the first example code. The latter is too verbose.

Yet, the first can't have the image linked to another page or to a higher  
resolution. This limits the use cases.

I'm sticking to my initial suggestion. The new caption attribute for IMG  
would do no harm, and it would just serve its purpose.


-- 
http://www.robodesign.ro
ROBO Design - We bring you the future
Received on Wednesday, 28 June 2006 09:51:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC