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

[whatwg] form markup

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 24 Feb 2009 12:13:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0902241202150.17055@hixie.dreamhostps.com>
On Tue, 24 Feb 2009, Rikkert Koppes wrote:
>
> There are various ways to forms are beining marked up, to name a few
> 1. use a table, put labels and inputs in cells
> 2. use a dl, put labels in dt, put inputs in dd
> 3. use p elements to surround label and input pairs
> 4. use an ol element, let li surround label and input pairs
> 5. use an ul element, let li surround label and input pairs
> 
> Is there any preferred method?

It's hard to tell without more details on what kind of form you have in 
mind. For most forms, I tend to prefer <p> elements personally.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 24 February 2009 04:13:10 UTC

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