Computer Applications

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

  1. <select>
  2. <list>
  3. <dropdown>
  4. <option>

HTML Advanced Features

3 Likes

Answer

<option>

Reason — A drop down selection list is created with SELECT and OPTION tag pair. An example is given below:

<FORM ACTION = "WWW.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>

<SELECT> tag specifies a selection drop down list and <OPTION> tag specifies the various options available to select from.

Answered By

1 Like


Related Questions