HTML Textarea Tag

Posted The: 02/09/2008 At: 7:15

The textarea element in html is used togetter with forms to submit data to the server, sometimes it may also be used to show code examples.

Warning

When using the textarea to submit data, be sure to use server-side validation as well as client-side.

Attributes

Standard Attributes.

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

DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.

Example

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

Comments: [0]

© Brugbart Webdesign