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

HTML Reference Manual

HTML Tag Directory

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. The formnovalidate attribute is only used for buttons of type "submit".

 HTML <button> etichetta

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 and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

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

Attenzione: Safari, Internet Explorer 9 e versioni precedenti non supportano l'attributo formmethod.

Definizione e utilizzo

L'attributo formnovalidate è una proprietà booleana (booleana).

Se utilizzato, il pulsante non eseguirà il processo di convalida durante la presentazione del modulo. L'attributo formnovalidate sovrascrive il novalidate Proprietà.

L'attributo viene utilizzato insieme a type="submit".

Differenze tra HTML 4.01 e HTML5

L'attributo formnovalidate è una nuova proprietà di HTML 5.

Differenze tra HTML e XHTML

In XHTML, le proprietà non sono ammesse in forma abbreviata, formnovalidate Le proprietà devono essere definite come <button type="submit" formnovalidate="formnovalidate">.

Sintassi

<button type="submit" formnovalidate>

 HTML <button> etichetta