![]() | ![]() |
This describes an option in a listbox of a form. It is only valid inside the SELECT tag. It creates a selectable choice from which the user can pick a value. |
![]() | |
SELECTED![]() ![]() ![]() ![]() |
This attribute indicates that this option is the default selected choice in the listbox. If this attribute is not present in one of the options the first option is the default value. |
VALUE![]() ![]() ![]() ![]() |
If this attribute is present it specifies the value that has to be send to the server instead of the value behind the option. |
![]() | ![]() |
Source: | <FORM> What do you want on your pizza : <SELECT> <OPTION VALUE=pepper>Extra peppers <OPTION VALUE=cheese SELECTED>Extra cheese <OPTION VALUE=pepper;cheese>Extra peppers & extra cheese </SELECT> </FORM> |
Result: |