[whatwg] image captions

Michel Fortin michel.fortin at michelf.com
Wed Apr 5 16:59:15 PDT 2006


I suggested this before:

>     <figure>
>       <img src="...">
>       <caption>Some image found <a href="...">here</a></caption>
>     </figure>

but now I'm aiming at something simpler.

When you read some text, a figure is an illustration of what the text  
says; it can be an image but is not necessarily: it could be a code  
snippet, illustrative text or an  mathematical equation. Its main  
characteristic is that it is separated from the flow of the text: you  
can read the text ignoring figures (and captions) and it should still  
make sense.

So what did I just describe? It just seems to me that I've described  
is the aside element. Would it make sense to simply lay out figures  
that way?

     <aside>
       <h1>Figure 1: Some image found <a href="...">here</a></h1>
       <p><img src="..."></p>
     </aside>

What about placing the image above the header? And is my  
interpretation of the semantics correct? I'm wondering that I may be  
abusing aside a little.


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/




More information about the whatwg mailing list