What is the use of required attribute in HTML5?
Answer:
It forces user to fill text on textfield or textarea before submitting form. It is used for form validation.
Example:
Name: <input type="text" name="name" required>
What is the use of required attribute in HTML5?
Answer:
It forces user to fill text on textfield or textarea before submitting form. It is used for form validation.
Example:
Name: <input type="text" name="name" required>
© 2017 QuizBucket.org