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:

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

4 - Documentation / Reference

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap