HTML and CSS Reference
In-Depth Information
9.8. Multiple-Choice Elements
Checkboxes and radio buttons give you powerful means for creating
multiple-choice questions and answers, but they can lead to long forms
that are tedious to write and put a fair amount of clutter onscreen. The
<select>
tag gives you two compact alternatives: pull-down menus and
scrolling lists.
9.8.1. The <select> Tag
By placing a list of
<option>
-tagged items inside the
<select>
tag of a
form, you magically create a pull-down menu of choices.
Figure 9-2
,
earlier in this chapter, displays a
<select>
pull-down menu.