HTML <input> formnovalidateAttribute

HTML input 标签参考手册HTML <input> Tag

Examples

A form with two submit buttons (one validates, the other does not):

<form action="demo-form.php">
E-mail: <input type="email" name="userid"><br>
<input type="submit" value="Submit"><br>
<input type="submit" formnovalidate="formnovalidate" value="Submit without validation">
</form>

Try it »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, and Chrome support the formnovalidate attribute.

Note:Safari or Internet Explorer 9 and earlier versions do not support the formnovalidate attribute of the <input> tag.


Definition and Usage

The novalidate attribute is a boolean attribute.

The novalidate attribute specifies that the <input> element should not be validated when the form is submitted.

The formnovalidate attribute overrides the <form> element'snovalidateattribute.

Note:The formnovalidate attribute can be used with type="submit".


Differences between HTML 4.01 and HTML5

The formnovalidate attribute is a new attribute in HTML5.


Syntax

<input formnovalidate="formnovalidate">

Note:The formnovalidate attribute is a boolean attribute and can be set in the following way:

  • <input formnovalidate>
  • <input formnovalidate="formnovalidate">
  • <input formnovalidate="">

HTML input 标签参考手册HTML <input> Tag Other Extensions