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

前端 未结 12 1661
长情又很酷
长情又很酷 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:34

    It's certainly easier to use table than div to layout a table, but keep in mind that a table is supposed to mean something - it's presenting data in a regular way for the user to see, more than putting boxes on the screen in a given order. Generally, I think forms layouts should use divs to decide how the form elements are displayed.

提交回复
热议问题