HTML <option> tag
Usage
Specifies an individual option in a drop-down <select> list.
Example
Code:
<select>
<option value="cat">Cat</option>
<option value="dog">Dog</option>
<option value="hamster">Hamster</option>
</select>
Output:
Required Attributes
- none
Optional Attributes
- disabled - disables the option by default
- label - defines a label for the option, for use when using <optgroup>
- selected - specifies that the option will be selected by default
- value - the value that will be passed to the processing page when the form is sent