What does the
input tag mean? [Recommended tutorial: HTML tutorial]
The input tag is an input field that specifies that users can enter data. It is also a simple HTML form, containing two text input boxes and a submit button.
html input tag syntax
Function: Used to collect user input information.
Note: According to different type attribute values, the input field has many forms. Input fields can be text fields, checkboxes, masked text controls, radio buttons, buttons, etc.
Note: In HTML, the tag does not have a closing tag. In XHTML, the tag must be closed properly.
html input tag example
<html> <body> <form action=""> 文本框:<br> <input type="text"> <br> 密码:<br> <input type="password"> <br> 单选框:<br> <input type="radio"> <br> 提交按钮:<br> <input type="submit"> <br> </form> </body> </html>
The above is the detailed content of What does the input tag mean?. For more information, please follow other related articles on the PHP Chinese website!