HTML <form> novalidate Attribute

The novalidate attribute on a <form> tag turns off validation for all input elements during form submission.

Example

#

A novalidate attribute on a <form> element.
This setting overrides the required attributes on the input elements.

<form action="/tutorial/action.html" novalidate>
  <input type="text" name="firstname" placeholder="First name" required>
  <input type="text" name="lastname" placeholder="Last name" required>

  <button type="submit">Submit</button>
</form>

Using novalidate

The novalidate attribute specifies that no form validation takes place.

With this attribute enabled, none of the input elements will be validated, even when specified.

Effectively, form novalidate overrides all the input element's validation settings.


Syntax

<form novalidate>

Browser support

Here is when novalidate support started for each browser:

Chrome
1.0 Dec 2008
Firefox
4.0 Mar 2011
IE/Edge
10.0 Sep 2012
Opera
15.0 May 2013
Safari
10.1 Mar 2017

You may also like

 Back to <form>
Guides