Last modified on 7 October 2010, at 20:05

HyperText Markup Language/Tag List/option

UseEdit

Used in relation to the select tag. It defines the options in the list box that should have been declared.

ExampleEdit

Required attributesEdit

valueEdit

The value of the option that has been selected. It is then sent to the form.

Optional attributesEdit

classEdit

Associated CSS classes.

dirEdit

The direction of the text. The user has the choice of "rtl" (right to left) or "ltr" (left to right).

disabledEdit

Locks the values away from the user. The user cannot modify the value within the tag.

idEdit

A string that will be in the webpage.

langEdit

The ISO language code that the user wants to use for the tag.

selectedEdit

Defines the list item as the default selected.

styleEdit

CSS style command within the tag.

titleEdit

The title of the tag.

Standard attributesEdit

More infoEdit

A link to a page with more info, then the name of the site the info came from (i.e. W3Schools).