"Stylin' with CSS: A Designer's Guide 2nd Edition"
E-commerce sites use this type of connection for payment transactions. THE TEXTAREA INPUT CONTROL FIGURE 6.16 Whenever you want the user to be able to enter more than just a few words, use a multiline Textarea ?¬? eld.
A textarea is a multi-line text ?¬? eld, as shown in Figure 6.16. Unlike the other text form elements, the text area??™s markup is an enclosing tag, and you can add text between the opening and closing tag to have default text display the ?¬? eld when the page loads, as illustrated by the highlighted text in the code above. The rows and cols attributes set the width and height respectively of the text area; if the user types more lines than de?¬? ned by the rows attribute, a scroll bar appears so all the entered text can be reviewed. FIGURE 6.15 Although visually similar to the single line text ?¬? eld, text typed into a password ?¬? eld displays as a row of dots. STYLIN??™ WITH CSS - CHAPTER 6 196 THE RADIO BUTTON INPUT FIGURE 6.17 Radio buttons enable the user to pick one of a number of choices. type="radio" value="Choice_1" /> Radio buttons , as shown in Figure 6.17, allow the user to indicate a choice; they are mutually exclusive, meaning the user can only pick one.