[whatwg] image captions

Simon Pieters zcorpan at hotmail.com
Sat Apr 22 15:10:18 PDT 2006


From: Ian Hickson <ian at 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">

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

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

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

Simon Pieters

More information about the whatwg mailing list