HTML - Option

About

option is an element used to define a value.

option can be contained in:

Example

For example, this select creates a drop-down list of colors:

<select>
  <option value="blue">Blue</option>
  <option value="yellow">yellow</option>
  <option value="red">Red</option>
  <option selected value="green">Green</option>
</select>

Documentation / Reference


Powered by ComboStrap