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

后端 未结 13 1713
逝去的感伤
逝去的感伤 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:39

    I never understood why you would use an ordered or unordered list for forms when a definition list seems more semantically appropriate:

    They can be a wee bit trickier to wrangle format-wise, but it always made a lot more sense to me than lists or tables for the vast majority of forms.

    Having said that, tables don't seem inappropriate to me for editable tabular data.

提交回复
热议问题