WML » Tags » card

Syntax:
<card> ... </card>

The card tag serves as a container element for all the various texts, images, links, and other WML tags that you wish to use to create your wireless web site. A card element is somewhat analogous to the body element in HTML, but with one major difference, in that you can have more than one card element.

A collection of card elements (cards) is referred to as a deck. Note that there is no tag to signify a deck. However, the collection of card elements in contained in a wml element.

It is common practice to provide a title phrase for each card, so that it can be displayed on the browser for the benefit and convenience of the user. This is done with the optional title attribute. Further, the unique value of the optional id core attribute is commonly used as a link anchor.
 
Nested Tags: do  onevent  p  timer

Examples

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>

<card id="card1" title="Card 1">
   <do type="accept">
      <go href="#card2" />
   </do>
   <p>
      Please Click Accept
   </p>
</card>

<card id="card2" title="Card 2">
   <p>
      DevGuru is great!
   </p>
</card>

</wml>
Language(s): WML

See Also: