How to solve the problem that <form> and <input> cannot be displayed normally?
P粉996763314
P粉996763314 2023-08-10 12:13:42
0
2
414
<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>
P粉996763314
P粉996763314

reply all(2)
P粉949190972

I verified the following using W3C Validator and confirmed it is valid.

<!DOCTYPE html>
<html>
<head>
  <title>test</title>
</head>
<body>
  <input type='text' />
</body>
</html>
P粉662089521

<input> There is no <form>, looks valid , yes (at least for html 4.01, in 17.2.1 near the end):

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!