Why is an input tag not allowed directly within a form tag?

后端 未结 4 1161
我寻月下人不归
我寻月下人不归 2020-12-17 21:50

I just read the following at http://w3fools.com/#html_forms:

Non-block-level elements (such as ) are not valid directly insi

4条回答
  •  被撕碎了的回忆
    2020-12-17 22:14

    It's standards pedantics.

    • The statement is legitimate as far as the standard goes: in HTML 4.01, the definition for
      specifies that it may only contain block elements or
提交回复
热议问题