[whatwg] List captions

In message <op.tqc4hdnd6iodd8 at tzeentch.studby.ntnu.no>, Magnus
Kristiansen <magnusrk+whatwg at pvv.org> writes

>On Fri, 06 Apr 2007 14:31:58 +0200, Andy Mabbett
><andy at pigsonthewing.org.uk> wrote:
>
>>
>> How often do we see something like:
>>
>>         <p>Animals:</p>
>>         <ul>
>>           <li>Cat</li>
>>           <li>Dog</li>
>>           <li>Horse</li>
>>           <li>Cow</li>
>>         </ul>
>>
>> This would be more meaningful as:
>>
>>         <ul caption="Animals">
>>           <li>Cat</li>
>>           <li>Dog</li>
>>           <li>Horse</li>
>>           <li>Cow</li>
>>         </ul>
>>
>> There could also be a summary attribute, as with tables.
>>
>> Any interest?
>
>We should do our best to avoid repeats of alt, title, and friends.

Why?

>A list  header would go much better as a separate element, like
><caption> is for  tables.

Like:
        <ul>
          <caption>Animals</caption> (or lh, or whatever)
          <li>Cat</li>
          <li>Dog</li>
          <li>Horse</li>
          <li>Cow</li>
        </ul>

Yes, that would work, too.

>The resurrection of <lh> was proposed a few days ago on this very
>list, why not take a look at that thread?

Great minds think alike! ;-)

-- 
Andy Mabbett
            *  Say "NO!" to compulsory ID Cards:  <http://www.no2id.net/>
            *  Free Our Data:  <http://www.freeourdata.org.uk>
            *  Are you using Microformats, yet: <http://microformats.org/> ?

Received on Friday, 6 April 2007 07:27:22 UTC