Horje
How to set HTML novalidate Attribute in Input

The novalidate attribute is an attribute.

When present, novalidate specifies that all of the form-data should not be validated when submitted.


Example of HTML novalidate Attribute in Input

Specify that no form-data should be validated on submit:
index.html
Example: HTML
 <form action="/action_page.php" novalidate>
  <label for="email">Enter your email:</label>
  <input type="email" id="email" name="email"><br><br>
  <input type="submit" value="Submit">
</form> 

Output should be:

Example of HTML novalidate Attribute in Input

Full Example of HTML novalidate Attribute in Input

The form novalidate attribute The novalidate attribute specifies that the form data should not be validated when submitted.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The form novalidate attribute</h1>

<p>The novalidate attribute specifies that the form data should not be validated when submitted.</p>

<form action="/action_page.php" novalidate>
  <label for="email">Enter your email:</label>
  <input type="email" id="email" name="email" required><br><br>
  <input type="submit" value="Submit">
</form>

</body>
</html>

Output should be:

Full Example of HTML novalidate Attribute in Input





Category:
Web Tutorial
Sub Category:
HTML Input Attributes
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference