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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
