WML <head> 標記



        WML 中的 <head> 元素與 HTML 中的 <head> 元素類似。

        它標記了儲存關於文件的元資訊的位置。元資訊是關於文件本身的資訊,而不是其內容。

        如果存在,此元素必須是 <wml> 元素中的第一個元素。

        屬性

        元素支援以下屬性

        屬性描述
        classclass 資料設定元素的類名稱。
        id元素 ID元素的唯一 ID。

        示例

        以下是顯示此元素用法的示例

        <?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>
        
        廣告
© . All rights reserved.