p vs. ol or ul for form styling

前端 未结 7 1829
醉梦人生
醉梦人生 2021-02-01 07:16

Typically I style forms with the unordered list tag e.g.

7条回答
  •  无人共我
    2021-02-01 07:35

    I tended to use one

    per and combo, until I got a new job where the norm was an unordered list. I have a coworker who swears by tables (one column for labels, one for fields) claiming that it's just tabular data with edit capabilities.

    At this point I believe inputs as an unordered list is the best semantic fit, but as you note there are many opinions on the subject.

提交回复
热议问题