Recall & Review
beginner
What HTML tag is used to create a dropdown list?
The <select> tag is used to create a dropdown list in HTML.
Click to reveal answer
beginner
How do you define options inside a dropdown list?
Use the <option> tag inside the <select> element to define each choice in the dropdown.
Click to reveal answer
beginner
How can you set a default selected option in a dropdown?
Add the attribute selected to the <option> tag you want to show as default.
Click to reveal answer
beginner
What attribute of the <select> tag helps identify the selected value when submitting a form?
The name attribute on the <select> tag is used to identify the selected value when the form is submitted.
Click to reveal answer
intermediate
How can you make a dropdown accessible for screen readers?
Use a <label> with a for attribute matching the <select> id, and ensure clear option text for screen readers.
Click to reveal answer
Which tag creates a dropdown list in HTML?
✗ Incorrect
The
How do you specify each choice inside a dropdown?
✗ Incorrect
Each choice inside a dropdown is defined with the
What attribute marks an option as the default selected in a dropdown?
✗ Incorrect
The selected attribute marks an option as the default selected.
Which attribute on <select> helps identify the selected value in form data?
✗ Incorrect
The name attribute is used to identify the selected value when submitting a form.
How do you link a label to a dropdown for accessibility?
✗ Incorrect
The for attribute on
Explain how to create a basic dropdown list in HTML and set a default option.
Think about the tags needed and how to mark one option as chosen by default.
You got /4 concepts.
Describe how to make a dropdown accessible for users with screen readers.
Consider how labels and ids help screen readers understand the dropdown.
You got /4 concepts.