"Stylin' with CSS: A Designer's Guide 2nd Edition"
If the user changes her mind and clicks another button, the ?¬? rst choice de-selects (just like the buttons on your car radio, hence the name). Use radio buttons for selections where there is only one possible choice from two or more selections. A group of radio buttons is created by giving each input in the group the same name attribute; then they interact correctly and only one can be selected at any time. Because there is no user-entered data associated with radio buttons, the value attribute determines the data to be passed if that particular radio button is selected. Note also you can add the checked attribute to one of the radio buttons in a set to have it preselected when the page loads. THE CHECKBOX INPUT CONTROL FIGURE 6.18 Checkboxes allow users to make as many selection as they wish from a number of choices. value = "Choice_1" tabindex="4" /> The only difference betweeen checkboxes and radio buttons as described above is that checkboxes, as shown in Figure 6.18, are not mutually exclusive and the user can check as many in a group as he wishes. Use checkboxes where the user might select several or all of the choices??”the tomato, lettuce, onion, and pickle ?¬? xins in that online sandwich order, for example. DESIGNING INTERFACE COMPONENTS 197 THE SELECT CONTROL FIGURE 6.