February 2006
Intermediate to advanced
826 pages
63h 42m
English
A textarea form control and its markup are presented here (Figure 15-11).
<p>What did you dream last night?</p><textarea name="dream" rows="4" cols="45">Tell us your dream in 100 words or less</textarea>

Figure 15-11. The textarea form field
Specify the number of lines of text the area should display using the rows attribute. The cols attribute specifies the width (measured in characters). These attributes are required. Scrollbars are provided if the user types more text than fits in the allotted space.
The text that appears within the textarea element is the initial content of the text entry window when the form is displayed. When the form is transmitted, the browser sends the text along with the name specified by the required name attribute.