Allowing User Input Through a List
The rest of this chapter discusses creating a list of choices from which users can select. A list of information provides an even more restricted way to get input from a user—enabling the developer greater control of the form of data presented. Also, creating lists from which users can select choices provides an easier method of data entry from the user’s perspective.
The SELECT Element
The SELECT element enables you to create a list of options for user selections. As you’ll see, the OPTION and OPTGROUP elements are used in conjunction with the SELECT element. The OPTION element provides choices available in a list. The OPTGROUP element must also be included and is used to group your list of options hierarchically. ...
Get WAP 2.0 Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.