do
onevent
head
p
template
timer
WML TAG: card
<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
Attributes
class
The optional
class
core attribute is used to assign one or more classes to the element. Multiple classes are separated by white space. The class name is case sensitive (i.e.,
Stocks
and
stocks
are not the same).
id
The optional
id
core attribute is used to assign a unique name to a tag. The name must be unique to the entire deck and not just unique to a card. The first character of the name can be a letter or the underscore. The remaining characters can be any combination of letters, numbers, or underscores.
newcontext
The optional
newcontext
attribute is a Boolean value that directs the browser to re-initialize the display of the card when it is loaded. The default is
false
, which dictates no re-initialization. While
true
dictates that the browser does reinitialize.
onenterbackward
The optional
onenterbackward
attribute provides the URL or URN that is to be loaded into the browser when the user navigates back into the card using a
prev
task. The URL or URN usually cannot exceed 255 characters in length.
onenterforward
The optional
onenterforward
attribute provides the URL or URN address that is to be loaded into the browser when the user navigates into a card using a
go
task. The URL or URN usually cannot exceed 255 characters in length.
ontimer
The optional
ontimer
attribute provides the URL or URN address that is to be loaded into the browser when the
timer
tag expires for the current card. The URL or URN usually cannot exceed 255 characters in length.
ordered
The optional
ordered
attribute sets a Boolean value that provides information on how the content of the current card is arranged, which is used by the browser to organize the display presentation and layout. If set to
true
, it signifies that the content is organized in a linear sequence of elements (for example, a series of ordered or non-optional
input
elements). If set to
false
, it signifies that the elements are in no natural order (for example, a series of unordered or optional
input
elements). The default is
true
.
title
The optional
title
attribute provides a string or text used to describe or provide additional information about the card.
xml:lang
The optional
xml:lang
attribute sets the language, such as English or Greek, used in the element. For example, in the U.S. the default value is
en-US
.
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>
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information