The HTML <form> element can contain one or more form elements for collecting user input.
| Element | Description |
|---|---|
| <input> | Most used form element |
| <label> | Label for an input |
| <select> | Drop-down list |
| <textarea> | Multi-line text input |
| <button> | Clickable button |
| <fieldset> | Groups related elements |
| <legend> | Caption for fieldset |
| <datalist> | Predefined options for input |
| <output> | Result of a calculation |
Edit the code below and click Run to see the result live.