HTML and CSS Reference
creates a checkbox group as shown in Figure 9-3 .
Figure 9-3. A checkbox group
Although part of the group, each checkbox control appears as a separate
choice onscreen. Notice, too, with all due respect to dog, bird, and fish
lovers, that we've preselected the Cat checkbox with the checked attrib-
ute in its tag. We've also provided text labels; the similar value attrib-
utes don't appear in the browser's window but are the values submitted
with their associated name to the server if the user selects the check-
box. Also, you need to use paragraph or line-break tags to control the
layout of your checkbox group, as you do for other form controls.
In the example, if the user selects Cat and Fish and submits the form,
the values included in the parameter list sent to the server would be: