HTML Tutorial

The language for building web pages.

HTML Form Elements

HTML Form Elements

The HTML <form> element can contain one or more form elements for collecting user input.

All Form Elements:

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

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics