WML <meta> Tag



        The <meta> element places an item of arbitrary meta-information in a WML deck. This item is structured as a property name and its value.

        You can put any number of <meta> elements into the <head> element. This can add keywords for indexing purposes, store hints about the content of the deck, and store any other information.

        Attributes:

        The <meta> element supports the following attributes:

        Attribute Value Description
        name string Gives the name of this property. Meta-information with this attribute is intended for server-side applications, so it may be removed before it gets to the browser. Could be "keywords", "author", etc.
        http-equiv string An alternative for the name attribute.
        forua
        • true

        • false

        If present and set to true, indicates that the property is intended for the use of the browser.
        content string Should specify a description of the name attribute
        scheme string Can specify a format or structure that some properties may need to interpret their values. This attribute is used by few properties.
        class class data Sets a class name for the element.
        id element ID A 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>
   <meta name="keyword" content="WML"/>
   <meta http-equiv="Cache-control" content="no-cache"/>
</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