<form>
HTML <form> Element Reference
The HTML <form> element groups controls that collect and submit user input.
Categories
- Forms
Tag omission
Consult the HTML Living Standard for the precise tag-omission rules.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical form element example.
<form action="/search" method="get">
<label>Search <input name="q"></label>
<button>Search</button>
</form>