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


The <card> element supports the following attributes:

titlecdataGives a title to this card. This title is displayed in some way by the browser when the card is visible.
  • true

  • false

Specifies that when this card is entered, the browser context should be cleared.
  • 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.


Following is the example showing usage of this element:

<?xml version="1.0"?>

<card id="one" title="First Card">
This is the first card in the deck

<card id="two" title="Second Card">
Ths is the second card in the deck


E-Books Store