Name
<textarea>
Synopsis
<textarea> ... </textarea>
Define a multiline text input area within a
<form>; content of the
<textarea> tag is the initial, default
value.
Attributes
-
accesskey=char Define the hot-key character for this element.
-
cols=n Display
ncolumns of text within the text area.-
disabled Disable this control, making it inactive.
-
name=string Define the name for the text-area value that is passed to the form-processing application (required).
-
onblur=applet Specify an applet to be run when the mouse leaves this element.
-
onchange=applet Specify an applet to be run if a user changes the value of this element.
-
onfocus=applet Specify an applet to be run when the mouse enters this element.
-
onselect=applet Specify an applet to be run if the user clicks this element.
-
readonly Prevent user modification of this element.
-
rows=n Display
nrows of text within the text area.-
tabindex=n Specify this element’s position in the tabbing order.
-
wrap=style Set word wrapping within the text area to
off,virtual(display wrap, but do not transmit to server), orphysical(display and transmit wrap).
See Chapter 6 for more information on forms.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access