The HTML form is used to collect different types of user input. Let me share the example code of the HTML form component through code. Interested friends refer to it.
I do n’t say much nonsense, I will post code directly. The specific code is shown below:
<! Doctype html> <html> <gead> <meta charset = UTF-8> <Title> Insert Title Here </Title> </Head> <body> <!-- The component must have the name and value attribute used to obtain data to the server-> <te> Enter the name: <input type = text name = user value =/> <br/> Enter password: <input type = password name = passwd Value =/> <br/> Selecting Select Gender: <input Type = Radio name = Sex vlaue = Nan/> Male <input Type = Radio name = Sex Value = NV Checkd = Checked/> Women <br/> Selected Technology: <br/> Input Type = Checkbox name = Tech value = java/> java <input type = Checkbox name = Tech Value = html/> html <input type = Checkbox name = Tech alue = css/> css <br/> Select file: <input Type = file name = file/> <br/> A picture: <input type = image src = 11.jpg> <br/> <!-Data does not require client specifications but can be submitted to the server-> Hidden component: <input type = hidden name = myKey value = myValue/> <br/> A button: <input type = button value = There is a button onClick = Alert ('There is a button')> <br/> <Select name = Contry> <option value = None>-Select the country- </option> <option value = usa> the United States </option> <option value = EN> UK </option> <option value = cn selectd = select = select ED> China </option> </select> <textarea name = Text> </Textarea> <br/> <input type = reset value = clear data/> <input type = submit value = Submit data/> </> </ Body> </html>Summarize
The above is the instance code of the HTML form component introduced by Xiaobian. I hope it will be helpful to everyone. If you have any questions, please leave me a message. Xiaobian will reply to everyone in time. Thank you very much for your support for the VEVB Wulin website!