WEB-DEVELOPMENT-APPLICATIONS practice question 5 of 25

Which HTML tag should a developer use to create a drop-down list?

Full set: 131 questions
Answer options
A:

A. <Option>

B:

B. <Section >

C:

C. <Output>

D:

D. <Select>

Correct answer
Correct Answer:
D. D. <Select>
Explanation

The 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.

Why Incorrect

A. defines an individual item within a list but does not create the drop-down list container itself.

B.

is a generic semantic element used for grouping related content; it is not a form control element.

C. is an element used to display the result of a calculation or user action, not for creating an input control.

References

- 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

Tests
Build form controls with HTML
Difficulty
Easy

Key idea: The element creates a drop-down list, and the elements inside it supply the choices.

How to reach the answer

  1. The question asks for the element that creates the drop-down list itself.
  2. defines individual items but needs a parent container.
  3. is used for grouping content, and displays results.
  4. is the control that renders as a drop-down.

Each option

  • AIncorrect. is a single choice inside a select; on its own it does not create the list.
  • BIncorrect. is a semantic grouping element, not a form control.
  • CIncorrect. shows the result of a calculation or user action.
  • DCorrect. creates the drop-down control that contains the option elements.

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.

Start the free practice test

More questions

Other WEB-DEVELOPMENT-APPLICATIONS practice questions

Scroll to Top