Creating Menus
Check boxes are good for yes/no questions, and option buttons are good when there are a few options to choose from, but what if there are a dozen or more choices? Option buttons for that many choices can take up a lot of space onscreen and can overwhelm a Web visitor.
For situations involving many options, consider a menu, also called a drop-down list. A menu can contain as many options as needed, yet it takes up very little space on the form.

To create a menu, start with a two-sided <select> tag. Within it, place each option in its own <option> tag. Place the text that you want to appear on the menu between the opening and closing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access