/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: cols

[this page | pdf | back links]

The HTML cols attribute indicates the visible width of a <textarea> element (in number of characters).

 

Valid attribute values (when used with <textarea> elements) include:

 

Value

Description

integer

Visible width (in characters) of text area

 

The visible height of a <textarea> element can be set using the rows attribute. The size of a <textarea> element can also be set using CSS height and width properties.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile