Is it acceptable to use tables for forms? Or is it still more correct to use divs?

后端 未结 13 1727
逝去的感伤
逝去的感伤 2020-12-02 22:55

I\'m wondering whether it\'s acceptable to use tables for forms.

Strictly speaking, name/value pairs are tabular data, aren\'t they? And a form is just

13条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 23:34

    Eric, I would agree with you that form data is tabular data and semantically can live inside a table.

    This is the method I use for simple data entry screens.

    I wouldn't generally use divs, but possibly an ordered list

      ...

    as the form is an ordered list of items also. I find this method a lot hard to style however.

    You'll probably get 50/50 split in answers....

提交回复
热议问题