Is it bad design to use table tags when displaying forms in html?

前端 未结 12 1633
长情又很酷
长情又很酷 2020-11-30 05:01

I keep hearing that div tags should be used for layout purposes and not table tags. So does that also apply to form layout? I know a form layout is

12条回答
  •  渐次进展
    2020-11-30 05:42

    It's a grey area. Not everything in markup has clearly defined boundaries, and this is one case where you get to use your personal preference and make a judgement call. It doesn't quite fit the idea of data being organised, but the cells are related across multiple axes, and that's the rule of thumb I use to decide whether something fits in a table or not.

提交回复
热议问题