Why use definition lists (DL,DD,DT) tags for HTML forms instead of tables?

前端 未结 11 1619
醉酒成梦
醉酒成梦 2020-12-02 06:29

I\'ve come across a few examples recently that do things like:

Full Name:
11条回答
  •  死守一世寂寞
    2020-12-02 06:51

    Using dl dt,dd for forms is just another way to structure your forms, along with ul li, div and table. You can always put a label into dt. This way you keep the form specific element label in place.

提交回复
热议问题