मराठी

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

Advertisements

प्रश्न

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

टीपा लिहा
Advertisements

उत्तर

  • 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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 12: HTML - Adding multimedia elements and Forms - Evaluation [पृष्ठ २८४]
Advertisements
Share
Notifications



      Forgot password?
Use app×