# Form validation

We recommend using HTML5's built-in validation. It is very rich these days, and has good browser support.

# Resources

# Example

The required attribute is a boolean attribute. When present, it specifies that an input field must be filled out before submitting the form.

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