HyperText Markup Language/Tag List/select

UseEdit

This builds a List Box. Used for selecting a value from a list. This is to be used in relation with the option tag.

ExampleEdit

<select name="animals">
  <option selected value="Bird">Bird</option>
  <option value="Reptile">Reptile</option>
  <option value="Mammal">Mammal</option>
</select>

Required attributesEdit

nameEdit

Name of the value in the form.

Optional attributesEdit

classEdit

Associated CSS classes.

dirEdit

The direction of the text. You can choose from "ltr" (left to right) or "rtl" (right to left).

disabledEdit

Locks in the control so the user cannot modify the value in the list box.

idEdit

A string that is in the webpage.

langEdit

The ISO language code that you want to use for the tag.

multipleEdit

Allows the value tag to allow multiple selections.

sizeEdit

The size of the list box. It is measured in either rows or as a percentage on the screen.

styleEdit

CSS commands.

tabindexEdit

The order of the controls received by the form.

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).

Last modified on 7 October 2010, at 19:46