Html 5 Textarea Tag

In the html5 <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. Html5 some new attributes have introduced that is form, maxlength, autofocus, placeholder and wrap.

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

Syntax:

<textarea> ... </textarea>

Example Code



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

Out Put: