HTML: Option Tag

The <option>…</option> tags inside the <select>….</select> element define an option in the drop-down list.

<select>
	<option>………..</option>
	<option>………..</option>
</select>
AttributeValueDescription
disableddisabledSpecifies that an option should be disabled
labeltextSpecifies a shorter label for an option
selectedselectedSpecifies that an option should be pre-selected when the page loads
valuetextSpecifies the value to be sent to a server

Tagged : / / / / /