Is it correct to use DIV inside FORM?

前端 未结 10 1629
旧巷少年郎
旧巷少年郎 2020-12-02 17:51

I\'m just wondering what are you thinking about DIV-tag inside FORM-tag?

I need something like this:

&l
10条回答
  •  时光取名叫无心
    2020-12-02 18:22

    It is wrong to have as a direct child of a

    And by the way /> may fail on some doctype

    Check it with http://validator.w3.org/check


    document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "

    " or "

    ") inside an inline element (such as "", "", or "").

    提交回复
    热议问题