WML <option> Tag


        The <option>...</option> tags are used to define an item in a selection list. Items are presented as radio buttons in some WAP browsers. The <option>...</option> tag pair should be enclosed within the <select>...</select> tags.


        This element supports the following attributes:

        onpickurlSets what is going to happen when an user selects an item
        titletextSets a title for the option
        valuetextSets the default value of the variable in the "name" attribute
        xml:langlanguage_codeSets the language used in the element
        classclass dataSets a class name for the element.
        idelement IDA unique ID for the element.


        Following is the example showing usage of this element.

        <?xml version="1.0"?>
        <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
        <card title="Selectable List">
        <p> Select a Tutorial :
          <option value="htm">HTML Tutorial</option>
          <option value="xml">XML Tutorial</option>
          <option value="wap">WAP Tutorial</option>

        When you will load this program, it will show you the following screen:

        WAP Example 21

        Once you highlight and enter on the options, it will display the following screen:

        WAP Example 22