html input tag


  Translation results:

UK[ˈɪnpʊt] US[ˈɪnˌpʊt]

n. Input, input; input circuit; <electricity> input end; input data

vt. Input... into the computer; [Auto][Electronic] Input; input, feed

Third person singular: inputs Plural: inputs Present participle: inputting Past tense: input inputted Past participle: input inputted

html input tagsyntax

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 <input> tag does not have a closing tag. In XHTML, the <input> tag must be closed properly.

html input tagexample

<!DOCTYPE html>
<html>
<body>

<form action="">
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form> 

</body>
</html>

Run Instance»

Click the "Run Instance" button to view the online instance

<!DOCTYPE html>
<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>

Run instance»

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A