How to solve the problem that <form> and <input> cannot be displayed normally?
P粉996763314
2023-08-10 12:13:42
<p>Is it possible to use <code><form></code> without the <code><input></code> tag is valid? </p>
<p>I've set up a process for tagging some fields on a page, and found a page that didn't tag input fields the way I expected. </p>
<p>It took me some time to figure out that this was because when getting the form element and then getting the fields, it caused those fields to be ignored because there was no form. </p>
I verified the following using W3C Validator and confirmed it is valid.
<input>
There is no<form>
, looks valid , yes (at least for html 4.01, in 17.2.1 near the end):