Tag TEXTAREA

Description
The field <TEXTAREA> is an element of a form for creating the area, where several text lines can be entered. In contrast to tag <INPUT> line transferring can be used in the text field, they are saved while sending to the server.

Any text can be located between tags <TEXTAREA> and </TEXTAREA>
<textarea ...>  text </textarea>
Parametrs
Cols width of a field in symbols
Disabled blocks access or changing of the element
Name name of a field, it is aimed for identification by the handler
Readonly defines that the name can’t be changed by the user
Rows height of a field in text lines
Wrap parameters of line transferring
Closing Tag
Is optional
The Description of Tag <TEXTAREA> Parameters
COLS Parameter
Description
The weight of the text field, which is defined by the number of monospaced font symbols.

In case the font size is changed by means of styles, the width t is also changed.

<textarea cols="number"></textarea>
Arguments
Any positive integer
Default value
Depends on the browser settings and operating system.
DISABLED Parameter
Description
Blocks the access and changing of the text field. It is displayed grey and inacceptable for activation by the user. Moreover, such field can’t get focus by pressing the button Tab, mouse or any other way. Though such condition of a field can be changed via scripts.
<textarea disabled></textarea>
Arguments
No
Default value
This value is disabled by default
NAME Parameter
Description
Defines the unique name of the element <TEXTAREA>. As a rule, this name is used for data sending to the server or for the access to the field via scripts.
<textarea name="name"></textarea>
Arguments
The number of symbols, including numbers and letters, is used as a value. JavaScript is case sensitive, that is why follow the same spelling as in the name parameter.
Default value
No
READONLY Parameter
Description
When adding READONLY parameter to the tag <TEXTAREA> the text field can’t be changed by user, new text can’t be entered and modified. Moreover, such field can’t get focus by pressing button Tab, mouse or any other way. Though, condition and content of the field can be changed via scripts.
<textarea readonly></textarea>
Arguments
No
Default value
This value is disabled by default.
ROWS Parameter
Description
The height of the text field, which is defined by the number of displayed lines without content scrolling. If the font size is changed via styles, the height of the field is also changed.
<textarea rows="number"></textarea>
Arguments
Any positive integer
Default value
Depends on the browser settings and operating system.
PHP form
Web forms
Email forms
HTML forms