HTML Form Elements

All HTML topics
∙ Chapter 67

HTML Form Elements

Forms are built from inputs, selects, textareas, and buttons. Use <label> for accessibility.

<input>
Text, email, password, file, etc.
<select>
Dropdown options.
<textarea>
Multi-line text input.
<button>
Actions: submit/reset/button.
Use <fieldset> + <legend> to group related inputs.