[whatwg] image captions

Hi,

From: Ian Hickson <ian@hixie.ch>
>On Wed, 5 Apr 2006, fantasai wrote:
> >
> > As Lachlan points out, putting caption text in an attribute isn't very
> > good design and it gets in the way of a lot of things: marking up the
> > text, styling it without having to be a web tech expert of your caliber,
> > etc. The alt attribute has similar problems, but at least there we have
> > <object> as an alternative.
>
>Sure, send proposals for better ways of doing it to the list, and I'll
>make sure to go through all of them when I get around to speccing the
>media section of the spec. I was just saying what WA1 currently considers
>appropriate markup, based on what HTML4 provides.

HTML+ actually already has markup for image captions[1]:

   <fig src="image-equivalent-of-text">
    <caption>caption</caption>
    text
   </fig>

Since no current browser supports the HTML+ <fig> element (AFAIK), we could 
reuse it for image captions something like this:

   <fig>
    <caption>caption</caption>
    <img src="image-equivalent-of-text" alt="text">
   </fig>

[1] http://www.w3.org/MarkUp/HTMLPlus/htmlplus_35.html

Regards,
Simon Pieters

Received on Saturday, 22 April 2006 15:10:18 UTC