Question 1 of 12
Test your knowledge: The <optgroup> Element
An advanced checkpoint on HTML option grouping, labels, disabledness, customizable selects, DOM APIs, accessibility, form boundaries, security, and testing.
Knowledge check
Test your knowledge: The <optgroup> Element
An advanced checkpoint on HTML option grouping, labels, disabledness, customizable selects, DOM APIs, accessibility, form boundaries, security, and testing.
- 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 statement about nesting <optgroup> elements is correct?
Question 3 of 12
When does an optgroup need its label attribute?
Question 4 of 12
In a customizable select, what happens when an optgroup has a first-child <legend> and a label attribute?
Question 5 of 12
What does optgroup disabledness do?
Question 6 of 12
Which element owns the actual selected value in a grouped select?
Question 7 of 12
Which interface represents an <optgroup> element?
Question 8 of 12
Why is disabled="disabled" not an authorization mechanism?
Question 9 of 12
What does an optgroup contribute to form submission?
Question 10 of 12
If a wrapper element is used inside a customizable select around options, what creates the semantic group?
Question 11 of 12
Which test most directly verifies correct form behavior?
Question 12 of 12
What is the strongest component architecture for a grouped select?
Quiz results
Review
-
What is the primary semantic purpose of an <optgroup> inside a <select>?Hint used
-
Which statement about nesting <optgroup> elements is correct?Hint used
-
When does an optgroup need its label attribute?Hint used
-
In a customizable select, what happens when an optgroup has a first-child <legend> and a label attribute?Hint used
-
What does optgroup disabledness do?Hint used
-
Which element owns the actual selected value in a grouped select?Hint used
-
Which interface represents an <optgroup> element?Hint used
-
Why is disabled="disabled" not an authorization mechanism?Hint used
-
What does an optgroup contribute to form submission?Hint used
-
If a wrapper element is used inside a customizable select around options, what creates the semantic group?Hint used
-
Which test most directly verifies correct form behavior?Hint used
-
What is the strongest component architecture for a grouped select?Hint used