[whatwg] List captions
Andy Mabbett
andy at pigsonthewing.org.uk
Fri Apr 6 07:27:22 PDT 2007
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/> ?
More information about the whatwg
mailing list