W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2009

[whatwg] List Headers

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 04 Feb 2009 12:00:26 +0100
Message-ID: <4989754A.3010604@lachy.id.au>
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/
Received on Wednesday, 4 February 2009 03:00:26 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:09 UTC