HTML - attributes - novalidat

revision:


Content

"novalidate" attribute : a boolean attribute for not validating data syntax some examples


"novalidate" attribute : a boolean attribute for not validating data

top

When present, it specifies that the form-data (input) should not be validated when submitted. The "novalidate attribute" in HTML is used to signify that the form won't get validated on submit.
It is a boolean attribute and useful if you want the user to save the progress of form filing. If the form validation is disabled, the user can easily save the form and continue and submit the form later. While continuing, the user does not have to first validate all the entries.


syntax

top

<form novalidate></form >


some examples

top


codes:
                    <form style="margin-left:3vw;" action="/action_page.php" novalidate>                               
                        <label for="email">Enter your email:</label>
                        <input type="email" id="email" name="email"><br><br>
                        <input type="submit">
                    </form>
                
Name:
codes:
                    <form style="margin-left:3vw;" action="#"  method="get" target="_self" novalidate>
                        Name:
                        <input type="text">
                        <input type="submit" id="me" name="me" value="Submit @ me" formTarget="_blank">
                    </form>