HTML textarea cols attribute

Example

A text area with 3 rows and a width of 25 characters:
<textarea rows="3" cols="25">
1000source codes is to share tutorials on all programming languages like HTML, CSS, ASP, JSP, JAVA, AJAX, XML, PHP, SQL, XML, XHTML, JAVASCRIPT
  </textarea>


Definition and Usage

The cols attribute specifies the visible width of a text area.

Browser Support

The cols attribute is supported in all major browsers.

Syntax

<textarea cols="value">

Attribute Values

Value Description
number Sets the width of the text area (in average character widths)
Share this article :
 
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved