WML <wml> Tag


        Advertisements

        The WML <wml> tag is used to define a WML deck and contains cards and other elements of the document.

        The <wml> element serves a purpose much like the <html> element does for HTML pages.

        Attributes:

        The <wml> element supports the following attributes:

        AttributeValueDescription
        xml:langlanguage_codeSets the language used in the element
        classclass dataSets a class name for the element.
        idelement IDA unique ID for the element.

        Example:

        Following is the example showing usage of this element:

        <?xml version="1.0"?>
        <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
        "http://www.wapforum.org/DTD/wml12.dtd">
        
        <wml>
        
        <card id="one" title="First Card">
        <p>
        This is the first card in the deck
        </p>
        </card>
        
        <card id="two" title="Second Card">
        <p>
        Ths is the second card in the deck
        </p>
        </card>
        
        </wml>
        
        Advertisements