[whatwg] List Headers

Lachlan Hunt lachlan.hunt at lachy.id.au
Wed Feb 4 03:00:26 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>

Since figure is a sectioning root, a heading element could also be used 
here and it wouldn't affect the outline.  Please add an example of this 
use case to the spec.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/



More information about the whatwg mailing list