HTML Textarea Tag

The HTML Textarea element is used together with forms to submit data to the server, sometimes it may also be used to show code examples.

The textarea element can be resized in the browser, so you may want to apply maximum and minimum width and heights.

Attributes

Attribute:Value:Description:
AttributesOther AttributesCommon, I18n, Event
nameCharacter Dataname of element
rowsGET|POSTRows of textarea.
colsContentTypeColumns of textarea.
disableddisableddisables the element
readonlyreadonly
tabindexNUMBERPosition in tabbing order.
accesskey{CHARACTER}Key for accessibility.
onfocusScriptThe element got the focus.
onblurScriptThe element lost the focus.
onselectScriptSome text was selected.
onchangeScriptThe elements value was changed.

HTML Textarea Example

<p><textarea cols="40" rows="5" name="textmsg"></textarea></p>

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.