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