HTML and CSS Reference
In-Depth Information
<option>
Defines available options within a <select>
menu
Function
class , dir , disabled , id , label , lang , onClick ,
onDblClick , onKeyDown , onKeyPress , onKeyUp ,
onMouseDown , onMouseMove , onMouseOut ,
onMouseOver , onMouseUp , selected , style ,
title , value
Attributes
End tag
</option> ; usually omitted in HTML
Contains
plain_text
Used in
select_content
9.8.2.1. The value attribute
Use the value attribute to set a value for each option the browser sends
to the server if the user selects that option. If the value attribute has not
been specified, the value of the option is set to the content of the <op-
tion> tag. As an example, consider these HTML options:
<option value=Dog>Dog
<option>Dog
Search WWH ::




Custom Search