<TEXTAREA> Tag & its Attribute

HTML Tag <TEXTAREA>

<TEXTAREA> Defines a multiple-line text input field within a form. Place the <TEXTAREA> tags inside the <FORM> tags. To specify a default value in a <TEXTAREA> field, place the text between the <TEXTAREA> tags.

Attribute of <TEXTAREA> Tag

ACCESSKEY

Assigns a keystroke sequence to the <TEXTAREA> element.

<TEXTAREA COLS=40 ROWS=10 NAME="dkm"
ACCESSKEY=S>


Possible Values

Any Alphabets.



CLASS

Indicates which style class applies to the <TEXTAREA> element.

<TEXTAREA CLASS="dkm>


Possible Values

Any Class Name.



COLS

Indicates the width (in character widths) of the text input field.

<TEXTAREA NAME="dkm" COLS=50
ROWS=3></TEXTAREA>


Possible Values

Number of Columns



DATAFLD

Selects a column from a previously identified source of tabular data (see the DATASRC= attribute).

<TEXTAREA DATASRC="#data_table"
DATAFLD="name" NAME="st1">


Possible Values

Data field Name.



DATASRC

Specifies the source of data for data binding.

<TEXTAREA DATASRC="#data_table"
DATAFLD="name" NAME="st1">


Possible Values

Data Source Name.



DISABLED

Denies access to the text input field.

<TEXTAREA ROWS=10 COLS=10
NAME="Comments" DISABLED>


Possible Values

DISABLED



ID

Assigns a unique ID selector to an instance of the <TEXTAREA> tag. When you then assign a style to that ID selector, it affects only that one instance of the <TEXTAREA> tag.

<TEXTAREA ID="dkm">


Possible Values

Any ID Name.



NAME

Names the value you pass to the form processor. For example, if you collect personal feedback, assign the NAME= attribute something like "comments". This establishes a name-value pair with which the form processor can work.

<TEXTAREA COLS=30 ROWS=10
NAME="recipe"></TEXTAREA>


Possible Values

Any Name.



READONLY

Specifies that the visitor cannot change the contents of the text input field.

<TEXTAREA ROWS=10 COLS=10
NAME="Example" READONLY>


Possible Values

READONLY



ROWS

Indicates the height (in lines of text) of the text input field.

<TEXTAREA NAME="dkm" COLS=50
ROWS=3></TEXTAREA>


Possible Values

Number of rows(integer).



STYLE

Specifies Style Sheet commands that apply to the <TEXTAREA> tag.

<TEXTAREA STYLE="background: red">


Possible Values

CSS Property with Value.



TABINDEX

Indicates where <TEXTAREA> appears in the tabbing order.

<TEXTAREA ROWS=5 COLS=40 NAME="Example"
TABINDEX=2>


Possible Values

Index Number (Integer).



TITLE

Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the text entry input method.

<TEXTAREA COLS=10 ROWS=2 NAME="subject"
TITLE="Text Entry Box">


Possible Values

Any text Message.




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz