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

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

    It's important to use labels with the 'for' attribute for screen readers (for usability).

    That is why I use fieldsets

提交回复
热议问题