[whatwg] image captions

mozer xmlizer at gmail.com
Thu Apr 6 03:57:04 PDT 2006


On 4/5/06, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
> Ian Hickson wrote:
> > On Tue, 4 Apr 2006, fantasai wrote:
> >> I'm wondering what WA1 considers appropriate markup for a figure with a
> >> caption.
> >
> >    <p><img src="image-equivalent-of-text" alt="text" title="caption"></p>
>
> That's fairly limited because it doesn't allow markup within the title
> attribute.  What about extending the <caption> element, currently used
> with <table>, to <img>, <object> and <embed>?

Proposition 1 :
-----------------
And what about just giving to <img> a content ?

<p><img src="image-equivalent-of-text" alt="text"><caption>Title
<b>is</b> caption</caption><span>alternate text is just the content of
<code>img</code> without enclosing element</span></p>

but it could be inconsistent with just alt content of an <img>...

Proposition 2 :
-----------------------
or just giving img an id
then using @for attribute
<p><caption for="img1">this is <b>the</b> caption</caption><img
id="img1" src="image-equivalent-of-text" alt="text"></p>

Just proposals

Mohamed



More information about the whatwg mailing list