HTML - Option

1 - About

option is an element used to define a value.

option can be contained in:

  • a select (list)
  • an optgroup (to group option)
  • or a datalist element (data array)

3 - 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>

4 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap