Processing Text Areas

Text area fields are boxes in which the users can enter free-form text. When you create a text area field, you specify the number of rows and columns of screen space it should occupy. This area, however, doesn’t restrict the amount of text users can enter. The field scrolls both horizontally and vertically to enable the users to enter more text.

Listing 12.7 creates an HTML form with a text area field for user comments. The field’s width is specified as a number of characters that can be typed on a single line; the height is the number of lines that are displayed without scrolling.

Tip

The <textarea> cols attribute is specified as a number of characters that can fit on a single line. This setting is dependent on the font ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.