The <option> tag in HTML is used to choose an option from a Drop-Down menu. This tag can be used with or without any attributes and needed value can be sent to the server.
The group of options can be created using <optgroup> Tag. It creates the group of related menu items.
<option> Contents... </option>
Attributes: The <option> tag contains four attributes which are listed below:
- disabled: This attribute contains the value disabled which represents option is disabled.
- label: This attribute contains the text value which represents the shorted label for option.
- selected: This attribute contains the value selected which represents the item is per-selected when browser loaded.
- value: This attribute contains the value text which sent to the server.
Supported Browsers: The browser supported by <option> tag are listed below:
- Google Chrome
- Internet Explorer
- HTML | DOM Option Object
- HTML | DOM Option value Property
- HTML | option value Attribute
- HTML <option> disabled Attribute
- HTML | DOM Option defaultSelected Property
- HTML | DOM option index Property
- HTML | DOM Option disabled Property
- HTML | DOM Option text Property
- HTML | <option> label Attribute
- HTML | DOM Option form Property
- HTML | DOM Option selected Property
- HTML | <option> selected Attribute
- HTML | DOM Option label Property
- How to get text of specific option tag using jQuery?
- UI vs UX Design : Which Career Option Should You Choose?
- How to sort option elements alphabetically using jQuery ?
- Why does AngularJS include an empty option in select ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.