[whatwg] form markup
Ian Hickson
ian at hixie.ch
Tue Feb 24 04:13:10 PST 2009
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list