HTML and CSS Reference
In-Depth Information
disabled
(
disabled="disabled"
in XHTML)
Indicates that the
select
element is initially nonfunctional. It can be reactivated with a
script.
form="
id of the form owner
id of the form owner
"
Not in HTML 4.01
. Explicitly associates the
select
control with its associated form (its
form owner
). With this method, the control does not need to be a child of the
form
element
that applies to it.
inputmode="verbatim|latin|latin-name|latin-prose|full-width-lat-
in|kana|katakana|numeric|tel|email|url"
Not in HTML 4.01
. Indicates what kind of input mechanism would be most helpful for
users entering content into the form control. Applies to the
text
and
search
input types.
multiple
(
multiple="multiple"
in XHTML)
Allows the user to select more than one
option
from the list. When this attribute is absent,
only single selections are allowed.
name="
text
text
"
Required
. Defines the name for the
select
control. When the form is submitted to the
form-processing application, this name is sent along with each selected
option
value.
required
(
required="required"
in XHTML)
Not in HTML 4.01
. When present, the user must select an option before the form can be
submitted.
size="
number
number
"
Specifies the number of rows that display in the list of options. For values higher than 1,
the options are displayed as a scrolling list with the specified number of options visible.
When
size="1"
is specified, the list is displayed as a pop-up menu.