Q:
What are the new attributes provided in HTML5 for "form" tag ?
Answer
The new attributes provided in HTML5 for <form> are:
a.) autocomplete
– It specifies if a form or input field should have autocomplete as on or off.
– If autocomplete is on, the browser is able to fill the values based on the values filled by the user earlier.
– autocomplete works for following input types: text, search, url, tel, email, password, datepickers, range, and color.
b.) novalidate
- This is a boolean attribute.
- When present, it signifies that the form-data should not be validated when submitted.
View answer
Workspace
Report Error
Discuss