WEB-DEVELOPMENT-APPLICATIONS practice question 5 of 25
Which HTML tag should a developer use to create a drop-down list?
Full set: 131 questionsThe HTML element is used to create an interactive control that provides a menu of options, which is typically rendered as a drop-down list. This element acts as a container for one or more elements, each of which specifies a value that can be selected by the user. The tag itself creates the main drop-down component that the user interacts with.
A. defines an individual item within a list but does not create the drop-down list container itself.
B.
C. is an element used to display the result of a calculation or user action, not for creating an input control.
- Mozilla Developer Network (MDN). (n.d.). : The HTML Select element. In HTML: HyperText Markup Language. Retrieved from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select. (See opening paragraph).
- WHATWG. (n.d.). 4.10.7 The select element. In HTML Living Standard. Retrieved from https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element.
- W3C. (2014, October 28). 4.10.7 The select element. In HTML5: A vocabulary and associated APIs for HTML and XHTML. Retrieved from https://www.w3.org/TR/html5/forms.html#the-select-element.
Question breakdown
Key idea: The element creates a drop-down list, and the elements inside it supply the choices.
How to reach the answer
- The question asks for the element that creates the drop-down list itself.
- defines individual items but needs a parent container.
- is used for grouping content, and displays results.
- is the control that renders as a drop-down.
Each option
Common trap: Picking because it is part of the drop-down, even though it is only a child item.
In practice: Country pickers, quantity selectors, and category filters are all built with select and option elements.
Remember: is the container that makes the drop-down; elements are its items.
Drafted with AI assistance and checked against the answer key.
Keep practicing
Take the free WEB-DEVELOPMENT-APPLICATIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other WEB-DEVELOPMENT-APPLICATIONS practice questions
- Question 1Given the following JavaScript code: ```javascript var n1 = 10; var n2 = "20.39"; ``` Whi…
- Question 2Which attribute displays help text in an input field without specifying an actual value f…
- Question 4Which element attaches an external CSS document to a web page?
- Question 6Which method allows the end user to enter text as an answer to a question as the page loa…
- Question 8Which layout design is easiest to manage on a variety of devices?
- Question 9Which structure tag should a developer use to place contact information on a web page?
