मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Explain the attributes of <select> and <option> tags. - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain the attributes of <select> and <option> tags.

थोडक्यात उत्तर

उत्तर

<Select> Tag

The <select> tag is used to create dropdown list box in HTML. It provides a list of various options as a dropdown list. This element is more helpful when a number of options are to be displayed in a limited space. The <option> tag is used to specify list items.

Attributes of <Select> tag:

1. Name – Provide the name to the control, which is sent to the server.

2. Size – Determine the style of dropdown list box.

  • Size = 1 dropdown list box
  • Size = 2 List box

3. Multiple – Allows user to select multiple values:

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 [पृष्ठ २८४]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
पाठ 12 HTML - Adding multimedia elements and Forms
Evaluation | Q 5. | पृष्ठ २८४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×