WE BELIEVE IN QUALITY SERVICE

cols Attribute

cols attribute defines the width of a textarea. It is used with <textarea> tag.

Example:

<!DOCTYPE html>
<html>
<head>
<title> Page Title </title>
</head>
<body>
<textarea cols="50"> This is the use of textarea tag with cols attribute. </textarea>
</body>
</html>

Run Example

Browser Support

Attribute Firefox Chrome IE Opera Safari
cols yes yes yes yes yes