WML <meta> Tag

Advertisements


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:

AttributeValueDescription
namestringGives 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-equivstringAn 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.
contentstringShould specify a description of the name attribute
schemestringCan specify a format or structure that some properties may need to interpret their values. This attribute is used by few properties.
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>
   <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
Advertisements