Definition: SELECT is an element used for single and multiple choice menus. It is common to see SELECT rendered as a pop-up or drop-down menu. Using SELECT gives you a more compact alternative to the use of radio buttons (for single choice menus) or checkboxes (for multiple choice menus).
Standard Attributes: CLASS, ID, LANG, MD, SRC
NAME is the menu's formal name, used for the content list of the form.
When MULTIPLE is present, it denotes that the SELECT element defines a multiple choice menu. When it is not present, the element defines a single choice menu.
When DISABLED is present, the field cannot be modified by the user, although it should be rendered as normal regardless. Wherever the field is disabled, the rendering should ideally provide a clue to this state (by changing the background color, for example).
ERROR specifies an error message that explains why the menu's current value registers as incorrect. There may also be additional error messages attached to individual options. The menu can be assumed to be OK when this attribute is not present. It is recommended that user agents provide a cue indicating that the menu is in error.
WIDTH specifies what the desired width is in pixels or in units. It is given in pixels by default.
HEIGHT is used to specify the desired height in pixels or units. It is given in pixels by default.
UNITS is used to specify what the choice of units is for both width and height. Units=pixels, which is the default, specifies pixels, and units=em (the letter "m"'s width) scales with the font size.
ALIGN can take values TOP or MIDDLE or BOTTOM. It thereby indicates which part of the graphic should be aligned with the baseline for the text line containing the IMG element.
ALIGN=LEFT will make the graphic float down and over into the current left margin, and any subsequent text will wrap around the graphic's right hand side. Similarly, ALIGN=RIGHT will make the graphic align with the right margin and wrap text around the left. It is advisable to use the FIG element rather than this feature to represent larger graphics.
Context: <SELECT> is legal within
The following markup can be used within <SELECT>
Suggested style/usage: Close Tag: REQUIRED
Examples: See Chapter 10 for form examples.