Best practice for form layout in html — table or flow?

后端 未结 5 1041
攒了一身酷
攒了一身酷 2021-02-15 23:08

What is considered the best practice for laying out forms in html? Specifically where you have a set of fields with labels, and possible error indicators. The best I can do is u

5条回答
  •  面向向阳花
    2021-02-16 00:00

    "Best Practice" would be to use a table for what it's meant to do (represent data) and use a combination of div, span or other elements to style your input form.

提交回复
热议问题