html Textarea Tag

In the html <textarea> tag is used to multi-line text input tag. if you would like to user enter multi text use <textarea> tag.

Mostly we will use cols and rows attribute for textarea. if you would like to increase and decrease width and height for in this tag use css properties. html some new attributes have introduced that is form, maxlength, autofocus, placeholder and wrap.

Also maxlength attributes have new introduced at html. you would like to control text to user input enable to use maxlength attributes.

In the <textarea> required attributes are cols,rows and Optional attributes are disabled, name and readonly and standard attributes are accesskey, class,dir,id, lang,style,title,xml:lang and tabindex.

Syntax:

<textarea> ... </textarea>

Example Code

<textarea cols="25" rows="5"></textarea>

Out Put:






Content