Question 1 of 12
Test your knowledge: The <option> Element
An advanced checkpoint on HTML option labels, values, selection state, disabledness, select and datalist relationships, DOM APIs, and customizable selects.
Knowledge check
Test your knowledge: The <option> Element
An advanced checkpoint on HTML option labels, values, selection state, disabledness, select and datalist relationships, 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
What does the selected content attribute establish?
Question 3 of 12
Which property reports current selectedness?
Question 4 of 12
What is the main role of the option label attribute?
Question 5 of 12
An option is inside a disabled optgroup but has no disabled attribute of its own. What is true?
Question 6 of 12
How should an option in a datalist be understood?
Question 7 of 12
What is the fourth argument of new Option(text, value, defaultSelected, selected)?
Question 8 of 12
How should all selected values of a multiple select be read?
Question 9 of 12
What is a placeholder label option in a single select?
Question 10 of 12
Why should an application validate option values on the server?
Question 11 of 12
What does selectedcontent use when reflecting a selected option?
Question 12 of 12
Which pairing correctly distinguishes two option state layers?
Quiz results
Review
-
If an option has no value attribute, where does its value come from?Hint used
-
What does the selected content attribute establish?Hint used
-
Which property reports current selectedness?Hint used
-
What is the main role of the option label attribute?Hint used
-
An option is inside a disabled optgroup but has no disabled attribute of its own. What is true?Hint used
-
How should an option in a datalist be understood?Hint used
-
What is the fourth argument of new Option(text, value, defaultSelected, selected)?Hint used
-
How should all selected values of a multiple select be read?Hint used
-
What is a placeholder label option in a single select?Hint used
-
Why should an application validate option values on the server?Hint used
-
What does selectedcontent use when reflecting a selected option?Hint used
-
Which pairing correctly distinguishes two option state layers?Hint used