An HTML form is used to collect user input. The user input is most often sent to a server for processing.

The HTML <form> element is used to create an HTML form for user input.

<form>
.
Content
.
</form>

Input Tags

The HTML <input> element is the most used form element.

An <input> element can be displayed in many ways, depending on the type attribute.


<input type="text"> 	Displays a single-line text input field
<input type="radio"> 	Displays a radio button (for selecting one of many choices)

Input Types