The textarea tag defines a multi-line text input control.
A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).
Overview TableInternationalization topics related to the a
element:
This example uses the textarea
element to set the cascading style sheets (CSS) overflow attribute to hidden
to remove the scroll bars from the textarea
.
<textarea style="overflow:hidden" id="txtComments">
The patient is in stable condition after suffering an attack of
the insatiable munchies.
</textarea>
Usage
To cater for international users see: Managing text direction in form controls
HTML Attributes
autofocus
= boolean
cols
= non-negative integer
disabled
= boolean
form
= the ID of a form element in the element’s owner
name
= unique name
placeholder
= sample value or a brief description of the expected format
readonly
= boolean
required
= boolean
rows
= valid non-negative integer
wrap
= "soft"/ “hard”
The default font is fixed pitch.
Firefox for Android, by default, sets a background-image
gradient on all textarea elements. This can be disabled using background-image: none
.
Safari Mobile for iOS applies a default style of opacity
: 0.4
to disabled textarea
elements. Other major browsers don’t currently share this particular default style.
**Security Warning: **Using this object incorrectly can compromise the security of your application. When submitting text through textarea
over an intranet or the Internet, validating the text string is recommended. For instance, you might validate the string for a restricted set of known, good values (such as letters and numbers) and ignore the rest.
white-space: pre-wrap;
text-indent: initial;
Related specifications
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4