HTML and CSS Reference
In-Depth Information
autofocus
(
autofocus="autofocus"
in XHTML)
Not in HTML 4.01
. Indicates the control should have focus (be highlighted and ready for
user input) when the document loads.
cols="
number
number
"
Specifies the expected maximum number of characters per line. Visual browsers wrap the
user's input so each line is less than the
cols
value. If
wrap
is set to
hard
, then the
cols
attribute is required.
dirname="
name of input field
name of input field
"
Not in HTML 4.01
. Specifies the name of an
input
field that has text direction (
ltr
or
rtl
) instructions for the
textarea
.
disabled
(
disabled="disabled"
in XHTML)
Disables the control for user input. It can be altered only via a script. Browsers may dis-
play disabled controls differently (grayed out, for example), which could be useful for
dimming certain controls until required info is supplied.
form="
id of form owner
id of form owner
"
Not in HTML 4.01
. Explicitly associates the
textarea
control with its associated form
(its
form owner
). With this method, the
textarea
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.
maxlength="
number
number
"
Not in HTML 4.01
. Specifies the maximum number of characters the user can input for
the
textarea
element.