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

后端 未结 4 1142
我寻月下人不归
我寻月下人不归 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条回答
  •  Happy的楠姐
    2020-12-17 22:04

    Well, according to the HTML 4.01 specification (specifically section 17.3), this is technically true. However, I don't know of any web browser that would actually give you a problem over it.

提交回复
热议问题