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

0

The new attributes provided in HTML5 for

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 Apr 15, 2023 at 00:24
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.