Name
<textarea> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<textarea>...</textarea>
Used within a <form>, defines a multiline
text-entry form element. The text that is enclosed within the
<textarea> tags will be displayed in the
text-entry field when the form initially displays.
Attributes
cols=numberSpecifies the visible width of the text-entry field, measured in number of characters (required). Users may enter text lines that are longer than the provided width, in which case the entry will scroll to the right (or wrap if the browser provides some mechanism for doing so).
name=textSpecifies a name for the parameter to be passed to the form-processing application (required).
rows=numberSpecifies the height of the text-entry field in numbers of lines of text (required). If the user enters more lines than are visible, the text field scrolls down to accommodate the extra lines.
wrap=off|virtual|physical|soft|hardInternet Explorer 4.0 and Navigator 2.0 and higher only. Sets word wrapping within the text area.
offturns word wrapping off; users must enter their own line returns.virtualdisplays the wrap, but the line endings are not transmitted to the server.physicaldisplays and transmits line endings to the server.softis the same asvirtual.hardis the same asphysical.
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