[whatwg] List Headers

Julian Reschke julian.reschke at gmx.de
Wed Feb 4 05:42:03 PST 2009


Ian Hickson wrote:
> On Wed, 4 Feb 2009, Robert O'Rourke wrote:
>> Are there any plans to bring list headers from HTML3 into HTML5? They'd 
>> make a lot of markup patterns simpler and be very very useful when it 
>> comes to styling.
> 
> You can do this in HTML5, using <figure> and <legend>:
> 
>    <figure>
>     <legend>A header for the list</legend>
>     <ul>
>      <li>List item</li>
>      <li>List item</li>
>      <li>List item</li>
>     </ul>
>    </figure>

Hm.

<http://dev.w3.org/html5/spec/Overview.html#the-figure-element>:

"The figure element represents some flow content, optionally with a 
caption, which can be moved away from the main flow of the document 
without affecting the document's meaning."

I don't think this is usually the case for a list.

BR, Julian



More information about the whatwg mailing list