English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <button> formnovalidate Attribute

The formnovalidate attribute is a boolean attribute. If this attribute is used, the validation process will not be executed when the form is submitted. The formnovalidate attribute overrides the novalidate attribute of the form, and the formnovalidate attribute is only used for buttons of type "submit".

 HTML <button> tag

Online Example

A form with two submit buttons. The first submit button submits form data with default validation, and the second submit button submits form data without validation:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <button> formnovalidate Attribute Usage-Basic Tutorial(oldtoolbag.com)</title>
</head>
<body>
<form action="action_page.php" method="get">
  E-mail: <input type="email" name="userid"><br>
  <button type="submit">Submit</button><br>
  <button type="submit" formnovalidate>Submit without validation</button>
</form>
</body>
</html>
Test to see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

Internet Explorer 10Firefox, Opera, Chrome support the formmethod attribute.

Note: Safari, Internet Explorer 9 and earlier IE versions do not support the formmethod attribute.

Definition and Usage

The formnovalidate attribute is a boolean (boolean) attribute.

If this attribute is used, the button will not perform the validation process when the form is submitted. The formnovalidate attribute overrides the form's novalidate attribute.

This attribute is used in conjunction with type="submit".

HTML 4.01 differences with HTML5differences

The formnovalidate attribute is an HTML 5 new attributes.

Differences between HTML and XHTML

In XHTML, attributes are not allowed to be abbreviated, formnovalidate The attribute must be defined as <button type="submit" formnovalidate="formnovalidate">.

Syntax

<button type="submit" formnovalidate>

 HTML <button> tag