HTML5 Validation Tutorial


Q1. 
Generate a public/private key pair.
A. Use the keygen element.
B. Use the required attribute.
C. Use the min and max attributes.
D. Use the pattern attribute.
Q2. 
Ensure that a value is within bounds.
A. Use the keygen element.
B. Use the required attribute.
C. Use the min and max attributes.
D. Use the pattern attribute.
Q3. 
Ensure that a value matches a regular expression.
A. Use the keygen element.
B. Use the required attribute.
C. Use the min and max attributes.
D. Use the pattern attribute.
Q4. 
Disable input validation.
A. Use the novalidate or formnovalidate attributes.
B. Use the required attribute.
C. Use the min and max attributes.
D. Use the pattern attribute.
Q5. 
Create a list of options to present to the user.
A. Use the select element.
B. Use the optgroup element.
C. Use the textarea element.
D. Use the output element.
Q6. 
Add structure to the list of options in a select element.
A. Use the select element.
B. Use the optgroup element.
C. Use the textarea element.
D. Use the output element.
Q7. 
Obtain multiple lines of text from the user.
A. Use the select element.
B. Use the optgroup element.
C. Use the textarea element.
D. Use the output element.
Q8. 
Denote the result of a calculation.
A. Use the select element.
B. Use the optgroup element.
C. Use the textarea element.
D. Use the output element.
Q9. 
Ensure that the user provides a value for a form element.
A. Use the keygen element.
B. Use the required attribute.
C. Use the min and max attributes.
D. Use the pattern attribute.
Q10. 
Create read-only or disabled input elements.
A. Use the size and maxlength attributes.
B. Use the value and placeholder attributes.
C. Use the datalist element and the list attribute on the input element.
D. Use the disabled and readonly attributes.


Advertisements
Advertisements

Mail: Support@gicgac.com