html form tag


  Translation results:

英[fɔ:m] 美[fɔ:rm]

n.Form; way; shape, form; appearance

vt.Form; constitute; organize; shape

vi. Form, produce; line up, queue up

Third person singular: forms Plural: forms Present participle: forming Past tense: formed Past participle: formed

html form tagsyntax

Function: Used to create HTML forms for user input.

Note: Forms can contain input elements, such as text fields, check boxes, radio buttons, submit buttons, etc. Forms can also contain menu, textarea, fieldset, legend, and label elements. Forms are used to transfer data to the server.

Note: The form element is a block-level element, and lines will be broken before and after it.

html form tagexample

<!DOCTYPE html>
<html>
<body>

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

Run instance »

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

Popular Recommendations

Home

Videos

Q&A