Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the use of the required attribute in HTML5?
Home
HTML
What is the use of the required attribute in HTML5?
+1
vote
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
What is the use of the required attribute in HTML5?
html-attribute
html5
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 24, 2019
by
rajeshsharma
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>
...