Working with Text Areas
Text areas are multiline fields for text input, as Figure 68.12 shows.
Listing 68.12. View Source for Figure 68.12.
<form>
<textarea name="typeTextHere" cols="50" rows="5">Type text here.</textarea>
</form>
Figure 68.12. Use text areas for multiline text input.
[View full size image]
<textarea name="typeTextHere" cols="50" rows="5"></textarea>
GEEKSPEAKIn virtual wrapping, the form submits the text in the text area without extra carriage returns. In physical wrapping, the form submits the text with carriage returns at the end of each line. |
The type of wrapping affects the way the browser submits the form data. In virtual wrapping, the text appears to wrap in the text area, and the form submits the text as a continuous string of characters, without carriage returns (unless the visitor expressly creates them by pressing Enter or Return). In physical wrapping, the form submits the text exactly as it appears in the text area, complete with carriage returns at the end of each wrapped line.
<textarea name="typeTextHere" cols="50" rows="5" wrap="virtual"></textarea>