cols Attribute


 

Where to use the cols Attribute

  • As Type Number - #REQUIRED:
    cols is declared on the element: textarea

Description

The cols attribute is a #REQUIRED attribute of the textarea element and states the number of 'columns' of text which should be visible in the textarea box, i.e. the width of the textarea box in average character widths. User agents should either wrap lines which are longer than this width or else allow horizontal scrolling.

See also the rows attribute.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 16 May 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Attribute Index (XHTML 1.1) > cols Attribute (XHTML 1.1)