Tutorials Point


  WML Home

  WML Tags Reference
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

WML <card> Tag


The <card> element encloses a WML card within a deck. In addition, text and graphics enclosed within <p> elements, it may also contain a number of event bindings

Attributes:

The <card> element supports the following attributes:

AttributeValueDescription
titlecdataGives a title to this card. This title is displayed in some way by the browser when the card is visible.
newcontext
  • true
  • false
Specifies that when this card is entered, the browser context should be cleared.
ordered
  • true
  • false
Provides a hint to the browser about how the card is organized. Set it to true if the card consists of a number of separate fields that should be dealt with in the order they appear in the card. Set it to false if the card contains optional fields or may be filled in out of order.
onenterforwardURLOccurs when the user navigates into a card using a "go" task
onenterbackwardURLOccurs when the user navigates into a card using a "prev" task
ontimerURLOccurs when a "timer" expires
xml:langlanguage_code Sets the language used in the element.
classcdataSets 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">
<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>


Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names