Home  >  Article  >  Web Front-end  >  What does the input tag mean?

What does the input tag mean?

云罗郡主
云罗郡主Original
2019-01-31 15:26:1821478browse

What does the

input tag mean? [Recommended tutorial: HTML tutorial]

What does the input tag mean?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn