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?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
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
(
23.9k
points)
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>
Related questions
+1
vote
Q: Which of the following attribute is used to provide a unique name to an element?
asked
Jan 28, 2021
in
HTML
by
SakshiSharma
(
32.2k
points)
html-element
html-attribute
html-tags
+1
vote
Q: How are tags migrated from HTML4 to HTML5?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
html4
html5
html4-vs-html5
0
votes
Q: What is the canvas element in HTML5?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
html5
canvas-html
0
votes
Q: What's new in HTML 5?
asked
Sep 6
in
HTML
by
Robindeniel
(
20.8k
points)
html5
0
votes
Q: Which value of Socket.readyState atribute of WebSocket indicates that the connection has been closed or could not be opened?
asked
Dec 2, 2020
in
HTML
by
Sandeepthukran
(
555
points)
html5
html
0
votes
Q: What are the different new form element types in HTML 5?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
html5-element
html5
element-types
element-html5
0
votes
Q: Which HTML5 tag would you use to define footer?
asked
Feb 11, 2020
in
HTML
by
rahuljain1
(
6.5k
points)
#html-footer
0
votes
Q: Briefly describe the correct usage of the following HTML5 semantic elements: header, article, section, footer
asked
Sep 6
in
HTML
by
Robindeniel
(
20.8k
points)
html5semantic
...