Re: what is dt?

Jeremy Keith On 09-09-18 01.12:

> Tab Atkins Jr. wrote:
>> While default styling is a bit of an issue, I'm not sure how using
>> <h1> would interfere with the outline algorithm.  <figure> is
>> explicitly a sectioning root


> In that case, using <h*> seems like it could be a reasonable  
> captioning element for <figure>.


Please note that the section root thing *already* is there to 
allow authors to insert texts containing exactly h1-h6. But it 
isn't there to allow you to use h1-h6 as a caption. If you allow 
h1-h6 to be used as caption, then h1-h6 would get dual functions 
when used within a figure element.

> <figure>
> <h1>Exhibit A</h1>
> <img src="foo" alt="bar">
> </figure>


To illustrate my point, we could end up with this:

<figure>
<h1>Exhibit A</h1>
<div><h1>Madonna and child</h1>
<img src="foo" alt="bar">
</div>
</figure>

Another "fun" effect: What if the <h1> would be the very last 
element? (<figure> allow the caption as last element.)

The point with the caption of <figure> is, as much as I gather, to 
have label that you put on the content _in this context_.

Using <dt><dd>, it is easy to separate the label of the figure 
from labels/headings inside the figure _content_:

<figure>
<dt>Exhibit A</dt>
<dd><h1>Madonna and child</h1>
<img src="foo" alt="bar">
</dd>
</figure>

Hence, I don't consider h1-h6 viable. <dt><dd> is better, then.

Another problem: The h1-h6 we have today are supposed to contain 
rather short titles that can be displayed in an outline. Suddenly, 
however, when h1-h6 is used as caption, that rule can not not 
apply. (Note the development of the content model of <caption> - 
see the draft.)
-- 
leif halvard silli

Received on Friday, 18 September 2009 00:52:26 UTC