Back to HTML

HTML Tutorial

Forms

Collect user input with accessible form controls.

Forms group labels, inputs, buttons, and other controls.

Every important input should have a connected label so users know what to enter.

code
<form>
  <label for="email">Email</label>
  <input id="email" type="email" />
  <button type="submit">Submit</button>
</form>