Advertisement
Home Open Editor ❯

HTML <button> formnovalidate Attribute

Example

<form action="action.php" method="get" >
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname">
  <button type="submit" formnovalidate>Submit</button>
</form>

Try this code ❯

Meaning

The formnovalidate is a Boolean attribute is used to indicate a form should not be validated during submission.

It is false by default but may be controlled either on the button directly or on a containing or related form.

Note: Initially this was simply known as novalidate.


Standard Syntax

<button type="submit" formnovalidate>


Advertisement

Attribute Values

Value Description
formnovalidate This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
Home Open Editor ❯
Advertisement