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>
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
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
html4
html5
html4-vs-html5
0
votes
Q: What is the canvas element in HTML5?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
html5
canvas-html
0
votes
Q: What's new in HTML 5?
asked
Sep 6, 2023
in
HTML
by
Robindeniel
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
html5
html
0
votes
Q: What are the different new form element types in HTML 5?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
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
#html-footer
0
votes
Q: HTML5 introduces two mechanisms, similar to HTTP session cookies, for storing structured data on the client
asked
Feb 23
in
HTML
by
DavidAnderson
html5-interview-questions-answers
0
votes
Q: The default character encoding in HTML5 is
asked
Feb 23
in
HTML
by
DavidAnderson
html5-interview-questions-answers
0
votes
Q: From the following give the disadvantages of HTML5?
asked
Feb 22
in
HTML
by
DavidAnderson
html5-intrerview-questions-answers
...