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

[whatwg] caption (was: How not to fix HTML)

From: Jonathan Worent <jworent@yahoo.com>
Date: Wed, 1 Nov 2006 19:01:56 -0800 (PST)
Message-ID: <20061102030156.79269.qmail@web32205.mail.mud.yahoo.com>


--- Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:

> Lachlan Hunt wrote:
> > Ian Hickson wrote:
> >> Joe Clark wrote:
> >>> http://blog.fawny.org/2006/10/28/tbl-html/
> > 
> > FYI, my response to that his here. 
> > http://lachy.id.au/log/2006/10/fixing-html
> 
> Joe Clark has responed.
> http://lachy.id.au/log/2006/10/fixing-html#comment-713
> 
> His comment is copied here for discussion.
> 
> > [snip]
> > 
> > caption generically applicable to tables and figures: We can call it 
> > legend if you'd like.

I think this is a good idea. Caption could be used with just about any embedded content. 

Taking cues form the label element for forms you could either make the association explicit by
wrapping the caption around the element its captioning
<caption>
   <embed ...>
   A funny video of a man being hit in the groin by a football
</caption>

or make the association implicit by using the for attribute
<embed id="funnyVid" ...>
<caption for="funnyVid">A funny video of a man being hit in the groin by a football</caption>

[not that it matters but "Football in the Groin" is from a Simpsons episode]

> > 
> > [snip]
> 
> -- 
> Lachlan Hunt
> http://lachy.id.au/
> 


&#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; Jonathan Worent &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
&#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; Webmaster &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;


 
__________________________________________________________________________________________
Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster. 
(http://advision.webevents.yahoo.com/mailbeta) 
Received on Wednesday, 1 November 2006 19:01:56 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:49 UTC