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

1 Answer

0 votes
by
It forces a user to fill text on the text field or text area before submitting the form. It is used for form validation.

Example:

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

Related questions

0 votes
asked Feb 11, 2020 in HTML by rahuljain1
0 votes
asked Feb 11, 2020 in HTML by rahuljain1
+1 vote
asked Oct 24, 2019 in HTML by SakshiSharma
0 votes
asked Oct 23, 2019 in HTML by AdilsonLima
0 votes
asked Oct 23, 2019 in HTML by AdilsonLima
...