Horje

How to add HTML <textarea> cols Attribute with label Tag

A text area with a specified height and width.

Definition and Usage

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

Tip: The size of a text area can also be set by the CSS height and width properties.


Browser Support

Syntax

<textarea cols="number">

Attribute Values

Value Description
number Specifies the width of the text area (in average character width). Default value is 20
index.html
Example: HTML
<label for="css">Type</label><br>
<textarea rows="4" cols="50">
At horje.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

Output should be:

How to add HTML <textarea> cols Attribute with label Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin