< All the HTML Tags >

<option></option>

Video Coming Soon...

  • option

    Tag Type

    block

    Tag Category

    forms

    Defines an option in a dropdown list

    Viewed

    1

    Examples

    1

Definition:

The HTML <option> tag defines a single option within a dropdown list (<select> element), allowing users to make a selection from multiple choices.

It can include attributes like value (the data sent to the server) and selected (indicating the default option). Proper use of <option> enhances user interaction and form usability.

Understanding the `<option>` tag is fundamental for creating interactive forms and selection interfaces.

Attributes:

disabled, label, selected, value, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default option Example:

Using the <option> tag to create dropdown options.
<select><option value="value">Option</option></select>

Default option Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…