p vs. ol or ul for form styling

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

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

7条回答
  •  迷失自我
    2021-02-01 07:45

    The WHATWG actually considers each part of a form to be a paragraph:

    Each part of a form is considered a paragraph, and is typically separated from other parts using p elements.

    I'm not sure whether I agree with this, but it seems to be most "official" answer to the problem you can get. Sadly I couldn't find any explanation.

提交回复
热议问题