Form validation

We recommend using HTML5 validation that is built into the browser. HTML5 validation is very rich these days, and has good browser support.

Resources:

Example

<!-- Note the `required` attributes in inputs -->
<form action="https://submit-form.com/your-form-id">
  <input type="email" name="email" required />
  <textarea name="message" required></textarea>
  <button type="submit">Send</button>
</form>