<textarea>Creats a field to display codelike text. Very versatile, capable of retrieving user input via forms. Compatible in nearly every browser. Attribute | Description | accesskey | Create a shortcut key or a "Hotkey". By pressing and holding the "alt" key along with the hotkey, you can activate hyperlinks. Not supported by all browsers. | class | Classify or name your elements. For instance, if you classify several paragraph elements the same name, using CSS it is possible to give them all the same styles in one line of code. | cols | Define the number of columns in a frameset as well as each width. | dir | Change the display of text from left to right, or right to left. Very useful in language translation. | disabled | Disables an element from being used. It is still displayed but any scripts associated with it are disabled. | id | Specify an ID for your elements. | lang | Define the language to display your element in. Here's a link to the abbreviations of languages. http://www.oasis-open.org/cover/iso639a.html | name | Choose a name for an element. Names can be used with other web programming languages to unify your site or run scripts obtaining user info. | readonly | Sets an element to readonly, disallowing user alteration. | rows | Define the number and width of rows in a frameset or number of rows in a textarea. | style | Used to create inline styles such as CSS. | tabindex | Numbers elements in a tab order, allowing for manipulation of what happens when the user presses the "Tab" key. | title | Places a "pop-up" title for an element upon mouse over. Similar to "help" pop-ups in word programs. | wrap | Defines how word wrapping should appear within textareas and form elements. |
Code:
<textarea cols="25" rows="10" wrap="virtual">This text area is 25 characters wide by 10 rows deep.</textarea>
Display:
|