HTML textarea

From Htmlpedia
Jump to: navigation, search

HTML Element TEXTAREA

Definition and Usage

The <textarea> tag defines a text-area (a multi-line text input control). A user can write text in the text-area. In a text-area you can write an unlimited number of characters. The default font in the text-area is fixed pitch.

Examples

<p><textarea rows="2" cols="20">
The cat was playing in the garden. Suddenly a dog showed up.....
</textarea></p>

Attributes

Optional Attributes

disabled, name, readonly

Standard Attributes

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

Event Attributes

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


Tags in Tag

  • Fontstyle

TT, I, B, BIG, SMALL

  • Phrase

EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, ACRONYM


References


Back to HTML Elements