英[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 tag syntax

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 tag example

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