Oct 24, 2019 in HTML

Q: What is the use of the required attribute in HTML5?

1 Answer

Oct 24, 2019
It forces a user to fill text on the text field or text area before submitting the form. It is used for form validation.


Name: <input type="text" name="name" required>
Click here to read more about HTML
Click here to read more about Insurance

Related questions

Feb 11 in HTML
Feb 11 in HTML
Apr 27 in HTML