Latest

recent

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)
HTML textarea cols attribute Reviewed by 1000sourcecodes on 02:11 Rating: 5
Powered by Blogger.