HTML - статьи

SELECT


Description

The SELECT element defines a menu of a series of selectable

input in a FORM, each identified with the OPTION element.

At least one OPTION element is expected within the SELECT contents.

NAME is the symbolic name of the field

returned to the server on submission.

SIZE determines the number of OPTIONS physically visible

when the browser displays the FORM.

The default selection will be the first OPTION in the SELECT contents.

The MULTIPLE attribute, if present, allows multiple selections, and

causes no OPTION to be the default.

Minimum Attributes

<SELECT NAME="...">characters...



</SELECT>

All Possible Attributes

<SELECT NAME="..."

SIZE=value

MULTIPLE

LANG="..."

DIR=ltr|rtl

ID="..."

CLASS="..."

ALIGN=top|middle|bottom|left|right

DISABLED

ERROR="..."

SRC="..."

MD="..."

WIDTH=value

HEIGHT=value

UNITS=pixels|em>characters...

</SELECT>

Elements Allowed Within...

element

Note that the elements

are expressly prohibited by RFC 1866 from being nested

within the SELECT element content

Allowed In Content Of...

Variations

The ERROR attribute without a value was first introduced

in an early Version 2 proposal but is not in RFC 1866.

The LANG and DIR attributes are introduced with the

internationalization proposal.

Version 3 proposes the ALIGN, DISABLED,

ERROR (with a value), SRC, MD, WIDTH, HEIGHT, and UNITS attributes.

The Version 3 proposed DISABLED attribute would display this menu,

but prohibit user entry/modification.

The Version 3 proposed ERROR attribute defines text to be displayed

in the event that the current selections for this menu are invalid.

Version 3 proposes a SRC attribute to identify a URL for an image

to be displayed instead of the OPTION texts for this menu,

with each OPTION element identifying its "hotspot" on this image.

If SRC is present, the texts would only be used for non-graphical browsers.

All elements concerning FORM are Level 2.



Содержание раздела