The option tag serves as a container for one item that is listed as a choice in a select list. A select list offers a selection of choices from which users may choose one or more items.
The select list is created using a select element which contains a collection of option elements. A string or text describing the item appears between the opening and closing option tags.
Further, you can group related option elements together into sub-listings using optgroup elements. The browser usually allows you to display only one optgroup element at a time.
Nested Tags: onevent
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<card id="ic" title="Ice Cream">
<p>
Click Select<br />
<select name="favorite" title="Pick your favorite!">
<optgroup title="Future Flavors">
<option value="cd">Coconut Delight</option>
<option value="cf">Coffee</option>
<option value="mns">Maple Nut Swirl</option>
<option value="rs">Raspberry Sorbet</option>
</optgroup>
<optgroup title="Unpopular Flavors">
<option value="cpr">Cinnamon Prune </option>
<option value="gb">Green Bean </option>
<option value="nunu">Nutty Nutmeg</option>
</optgroup>
</select>
</p>
</card>
</wml>