English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Which tag is used to specify the list of items in dropdown list box?

Advertisements
Advertisements

Question

Which tag is used to specify the list of items in dropdown list box?

Short/Brief Note
Advertisements

Solution

  • The <select> tag is used to create dropdown list box in HTML.
  • The <option> tag is used to specify list items.

Attributes of <Option> tag:
Selected – Indicate default selection Value – Value to be submitted to server

Example:

<Select name = area size = 1>
<option value = CHN> Chennai </option>
<option value = MDR selected> Madurai </option>
<option value = CBO> Coimbatore </option>
<option value = KKM> Kanyakumari </option>
</Select></p>
shaalaa.com
Working with Forms
  Is there an error in this question or solution?
Chapter 12: HTML - Adding multimedia elements and Forms - Evaluation [Page 284]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 12 HTML - Adding multimedia elements and Forms
Evaluation | Q 5. | Page 284
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×