HTML | PHP | Forum

HTML <textarea> tag


<textarea> - </textarea>

Definition and Usage

The TEXTAREA element specifies a multiline text input control.

Required Attributes

Attribute Value Description
cols number Specifies the number of columns visible in the text-area
rows number Specifies the number of rows visible in the text-area

Optional Attributes

Attribute Value Description
disabled disabled Disables the text-area when it is first displayed
name name of textarea Specifies a name for the text-area
readonly readonly Indicates that the user cannot modify the content in the text-area

Standard Attributes

id, class, title, style, dir, lang, xml:lang, tabindex, accesskey

For a full description, go to Standard Attributes.

Event Attributes

onfocus, onblur, onselect, onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes.


Source Output
<textarea rows="3" cols="15">
This is the text...


Learn HTML
HTML Tutorial

HTML Reference
HTML by function
HTML by Alphabet

HTML events
HTML attributes
HTML color names

<h1> to <h6>


Copyright 2005-8 Sunilcare.  All Rights Reserved.
Comments or suggestions? Contact us.About us