Question 1 of 12
Test your knowledge: The <select> Element
A comprehensive checkpoint on HTML select semantics, options, grouping, selection state, accessibility, form behavior, DOM APIs, and customizable selects.
Knowledge check
Test your knowledge: The <select> Element
A comprehensive checkpoint on HTML select semantics, options, grouping, selection state, accessibility, form behavior, DOM APIs, and customizable selects.
- Stuck? Each question has an optional hint.
- Skip a hard question and review it before your results.
- Questions and answer options can shuffle between attempts.
You can retake this quiz whenever you like.
Question 2 of 12
Which pattern explicitly associates a label with a select?
Question 3 of 12
What is the best description of the selected attribute on option?
Question 4 of 12
What does multiple change?
Question 5 of 12
What is the purpose of optgroup?
Question 6 of 12
What happens to a disabled select in form submission?
Question 7 of 12
Which is a sound pattern for a required single select?
Question 8 of 12
Which API exposes all currently selected options?
Question 9 of 12
What does selectedcontent do in the current customizable-select model?
Question 10 of 12
Why must servers still validate a submitted select value?
Question 11 of 12
Why is replacing select with generic divs risky?
Question 12 of 12
What is the robust approach for collecting every selected value from a multiple select?
Quiz results
Review
-
What does HTMLSelectElement.value return for a multiple select with several selected options?Hint used
-
Which pattern explicitly associates a label with a select?Hint used
-
What is the best description of the selected attribute on option?Hint used
-
What does multiple change?Hint used
-
What is the purpose of optgroup?Hint used
-
What happens to a disabled select in form submission?Hint used
-
Which is a sound pattern for a required single select?Hint used
-
Which API exposes all currently selected options?Hint used
-
What does selectedcontent do in the current customizable-select model?Hint used
-
Why must servers still validate a submitted select value?Hint used
-
Why is replacing select with generic divs risky?Hint used
-
What is the robust approach for collecting every selected value from a multiple select?Hint used