search

Home  >  Q&A  >  body text

How to solve the problem that <form> and <input> cannot be displayed normally?

<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粉996763314P粉996763314535 days ago476

reply all(2)I'll reply

  • P粉949190972

    P粉9491909722023-08-11 10:55:12

    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>

    reply
    0
  • P粉662089521

    P粉6620895212023-08-11 09:50:31

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

    reply
    0
  • Cancelreply