HyperText Markup Language/Tag List/option
Use
Used in relation to the select tag. It defines the options in the list box that should have been declared.
Example
Required attributes
value
The value of the option that has been selected. It is then sent to the form.
Optional attributes
class
Associated CSS classes.
dir
The direction of the text. The user has the choice of "rtl" (right to left) or "ltr" (left to right).
disabled
Locks the values away from the user. The user cannot modify the value within the tag.
id
A string that will be in the webpage.
lang
The ISO language code that the user wants to use for the tag.
selected
Defines the list item as the default selected.
style
CSS style command within the tag.
title
The title of the tag.
Standard attributes
More info
A link to a page with more info, then the name of the site the info came from (i.e. W3Schools).
Last modified on 7 October 2010, at 20:05