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

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

    Most of the answers I've seen here seem appropriate. The only thing I'd add, specifically to apathetic's or Mr. Matt's is to use

    /
    /
    . I believe these represent the list semantically.

    You might want to restyle these, but this says semantically what's going on, that is you've got a list of "terms" (

    ) and "definitions" (
    ), with the term being the label and the definition being the user entered values.

提交回复
热议问题