It is wrong to have <input> as the direct child of the <form>
And by the way, <input / > may fail on some doctype
Check it out with http://validator.w3.org/check
the document type does not allow the use of the "INPUT" element here; one of the starting tags "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" is missing
<input type = "text" />
The specified element is not allowed to appear in the context in which you placed it; the other elements mentioned are the only ones that are allowed there and may contain the element. This may mean that you need a containing element or you may have forgotten to close the previous element.
One possible reason for this message is that you tried to place a block level element (for example, "<p>" or "<table>") inside an inline element (for example, "<a>", "<span>" or "<font>").
stefan bachert Mar 30 2018-12-12T00: 00Z
source share