HOME BACK NEXT MENU

 Tag Description:

-==--==--==--==--==-

<SELECT> Form Select

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

Attributes:

NAME

NAME is the menu's formal name, used for the content list of the form.

MULTIPLE

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.

DISABLED

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

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

WIDTH specifies what the desired width is in pixels or in units. It is given in pixels by default.

HEIGHT

HEIGHT is used to specify the desired height in pixels or units. It is given in pixels by default.

UNITS

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

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

<FORM>

The following markup can be used within <SELECT>

<OPTION>

Suggested style/usage: Close Tag: REQUIRED

Examples: See Chapter 10 for form examples.

-==--==--==--==--==-
HOME BACK NEXT MENU

E-Mail: HTML for Dummies at html4dum@lanw.com
URL: http://www.lanw.com/html4dum/h4d2e/t0073.htm
Text - Copyright © 1995, 1996 Ed Tittel & Steve James.
For Dummies, the Dummies Man logo and Dummies Press are trademarks or registered trademarks of Wiley Publishing, Inc. Used with Permission.
Web Layout - Copyright © 1996, LANWrights
Revised -- May, 2002 [MCB]