WML <head> Tag



        The <head> element in WML is similar to the <head> element in HTML.

        It marks a place for meta-information about the document to be stored. Meta-information is information about the document itself, rather than its content.

        If present, this element must be the first thing inside the <wml> element.

        Attributes:

        The <head> element supports the following attributes:

        AttributeValueDescription
        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">
        
        <head>
           <access domain="www.tutorialspoint.com"/>
           <meta name="keyword" content="WML"/>
        </head>
        
        <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