W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] List captions

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Fri, 06 Apr 2007 14:24:39 -0400
Message-ID: <46169067.7060308@metalab.unc.edu>
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/
Received on Friday, 6 April 2007 11:24:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC