What is HTML cols Attribute?

HTML, HTML Attributes , 0 Comments

The cols attribute indicates the visible width of a textarea.

Note: You can also set the height and width of <textarea> by using CSS

Tag Support

You can use cols attribute on <textarea> tag.

Example

<textarea rows="5" cols="60">
	At buginit.com you can learn basic to pro web development technologies.
</textarea>

Browser Support

Attribute
cols Yes Yes Yes Yes Yes

Leave a Reply

Your email address will not be published. Required fields are marked *