English

Which of the following tag is used to define options in a drop-down selection list?

Advertisements
Advertisements

Question

Which of the following tag is used to define options in a drop-down selection list?

Options

  • <select>

  • <list>

  • <dropdown>

  • <option>

MCQ
Advertisements

Solution

<option>

Explanation:

The <select> and <option> tag pair is used to generate a drop-down selection list. Below is an example:

<form action="://gmail.com" method="get">
  <select name="stream">
    <option value="science">Science</option>
    <option value="commerce">Commerce</option>
    <option value="humanities">Humanities</option>
  </select>
  <input type="submit" value="Submit">
</form>

A selection drop-down list is specified by the <select> tag, while the different options that can be chosen from are specified by the <option> tag.

shaalaa.com
  Is there an error in this question or solution?
Chapter 5: HTML- III: Audio, Video and Forms - Assisted Practice [Page 229]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 5 HTML- III: Audio, Video and Forms
Assisted Practice | Q 15. | Page 229
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×