0
0
HTMLmarkup~5 mins

Select dropdown in HTML - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
A<select>
B<dropdown>
C<list>
D<option>
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.