<FORM> ... </FORM>, any number of
SELECT tags are allowed, freely intermixed with other
HTML elements (including INPUT and TEXTAREA
elements) and text (but not additional forms). In Mosaic for
X, SELECT tags are instantiated as Motif option menus and
scrolled lists.
Unlike INPUT, SELECT has both opening
and closing tags. Inside SELECT, only a sequence of
OPTION tags -- each followed by an arbitrary amount of
plain text (no HTML markup) -- is allowed; for example:
<SELECT NAME="a-menu">
<OPTION> First option.
<OPTION> Second option.
</SELECT>
The attributes to SELECT are as follows:
NAME is the symbolic name for this
SELECT element.
This must be present, as it is used when putting together the
query string for the submitted form.
SIZE: if SIZE is
1 or if the SIZE attribute is missing, by default
the SELECT will be represented as a Motif option
menu. If SIZE is 2 or more, the SELECT
will be represented as a Motif scrolled list; the value of
SIZE then determines how many items will be visible.
MULTIPLE, if present (no value), specifies that the
SELECT should allow multiple selections (n of
many behavior). The presence of MULTIPLE forces the
SELECT to be represented as a Motif scrolled list,
regardless of the value of SIZE.
OPTION are as follows:
SELECTED specifies that this option is selected by
default. If the SELECT allows multiple selections
(via the MULTIPLE attribute), multiple options can
be specified as SELECTED.