Easy Tutorial
❮ Att Option Value Av Prop Defaultmuted ❯

HTML <option> Tag

Example

Create a selection list with 4 options:


Browser Support

Most major browsers support the <option> tag.


Tag Definition and Usage

The <option> tag defines an option in a drop-down list.

The content inside the <option> tag is used within a <select> or <datalist> element.


Tips and Notes


Attributes

Attribute Value Description
disabled disabled Specifies that this option should be disabled when the page loads.
label text Defines a shorter label for an option when using <optgroup>.
selected selected Specifies that the option should be pre-selected when the page loads.
value text Defines the value to be sent to a server.

Global Attributes

The <option> tag supports global attributes. See the full list of HTML Global Attributes.


Event Attributes

The <option> tag supports all HTML Event Attributes.

❮ Att Option Value Av Prop Defaultmuted ❯