[whatwg] List Headers

Ian Hickson ian at hixie.ch
Wed Feb 4 02:45:28 PST 2009


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>

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list