What are the new attributes provided in HTML5 for <form>?

Asked: Apr 15, 2023

The new attributes provided in HTML5 for <form> are:

1) 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.

2) novalidate

- This is a boolean attribute.

- When present, it signifies that the form-data should not be validated when submitted.

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!