- WML Tutorial
- WML - Home
- WML - Overview
- WML - Environment
- WML - Syntax
- WML - Elements
- WML - Comments
- WML - Variables
- WML - Formatting
- WML - Fonts
- WML - Images
- WML - Tables
- WML - Links
- WML - Tasks
- WML - Inputs
- WML - Submit Data
- WML - Server Scripts
- WML - Events
- WML - Timer
- WML - Template
- WML - DTD
- WML2 - Tutorial
- WML References
- WML - Entities
- WML - Tags Reference
- WML Tools
- WAP - Emulators
- WML - Validator
- WML Useful Resources
- WML - Quick Guide
- WML - Useful Resources
- WML - Discussion
true
false
true
false
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:
Attribute | Value | Description |
---|---|---|
title | cdata | Gives a title to this card. This title is displayed in some way by the browser when the card is visible. |
newcontext | Specifies that when this card is entered, the browser context should be cleared. | |
ordered | 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. | |
onenterforward | URL | Occurs when the user navigates into a card using a "go" task |
onenterbackward | URL | Occurs when the user navigates into a card using a "prev" task |
ontimer | URL | Occurs when a "timer" expires |
xml:lang | language_code | Sets the language used in the element. |
class | cdata | 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"> <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