The novalidate attribute is assigned directly to form element and it will (unless overriden by formnovalidate attribute) make all form data field being submitted with no validation.

The value is of a Boolean type.

Syntax:

<form novalidate></form>

Elements:

Example

The form's novalidate example:

x
 
<!DOCTYPE html>
<html>
<body>
<h3>Save or publish?</h3>
<form action="../../../img/tutorials/html5_novalidate" method="get" novalidate>
  <p>
    <label for="description">Description:</label>
    <input type="text" id="description" name="description" required />
  </p>
  <p>
    <input type="submit" value="Save Draft" name="save" />
    or
    <input type="submit" value="Publish" name="publish" />
  </p>
</form>
<h6>p.s. We used same example for <em>formnovalidate</em> attribute, except that we replaced it with <em>novalidate</em> attribute</h6>
</body>
</html>

 

›› go to examples ››