[whatwg] List captions
Elliotte Harold
elharo at metalab.unc.edu
Fri Apr 6 11:24:39 PDT 2007
Andy Mabbett 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>
>
No, the caption should be displayed to all users. That means it needs to
be element content, not an attribute value. Just maybe
<ul>
<caption>Animals</caption>
<li>Cat</li>
<li>Dog</li>
<li>Horse</li>
<li>Cow</li>
</ul>
but definitely not
<ul caption="Animals">
<li>Cat</li>
<li>Dog</li>
<li>Horse</li>
<li>Cow</li>
</ul>
--
Elliotte Rusty Harold elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
More information about the whatwg
mailing list