Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <input> formnovalidate Attribute

The formnovalidate attribute on an <input> button of type submit specifies that no form validation occurs during form submission.

When enabled, all input elements will not be validated when the form is submitted.

Example

#

A formnovalidate attribute on a submit button.
This button will not validate the form input.


<form action="/tutorial/action.html">
  <input name="email" placeholder="Enter your email" required><br/>

  <input type="submit" value="Submit with validation"/>
  <input type="submit" value="Submit without validation" 
         formnovalidate/>
</form>

Using formnovalidate

The formnovalidate attribute overrides the form's validation setting.

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

This attribute can only be used on <input> types submit or image.


Syntax

<input type="submit | image" formnovalidate>

Browser support

Here is when formnovalidate support started for each browser:

Chrome
1.0 Dec 2008
Firefox
1.0 Nov 2004
IE/Edge
10.0 Sep 2012
Opera
10.6 Oct 2010
Safari
5.1 Oct 2011

You may also like

 Back to <input>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides