HTML Form - SELECT element
- The SELECT element creates a menu. Each choice offered by the menu is represented
by an OPTION element. A SELECT element must contain at least one OPTION element.
- The OPTGROUP element allows authors to group choices logically. This is particularly
helpful when the user must choose from a long list of options; groups of related choices
are easier to grasp and remember than a single long list of options. In HTML 4, all OPTGROUP
elements must be specified directly within a SELECT element
Attributes:
-
- NAME="text"
- This attribute assigns the control name.
-
- size = number
- If a SELECT element is presented as a scrolled list box, this
attribute specifies the number of rows in the list that should be visible at the same
time. This element can be a drop-down menu instead ofa scrolled list box.
-
- MULTIPLE
- If set, this boolean attribute allows multiple selections. If not set, the SELECT
element only permits single selections.
Copyright © 1994-2002
World Wide Web Consortium
All Rights Reserved.
previous slide |
next slide
Return to Beginning of Presentation
Return to Software Development Library