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.
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 ...