WML TAG:  anchor

<anchor> ... </anchor>
 
The anchor tag can be used to to set a hypertext link (usually just referred to as a hyperlink or link). The link allows you to travel from one XML card or deck to another. This tag must be used with the go tag to actually effect the link.
 
It is recommended that you use the a tag for links rather than the anchor tag.
 
Remember that you cannot nest link elements inside of link elements. Like the a tag, you can nest the br and img tag in an anchor link element and, in addition, you can also nest the go, prev, and refresh tags.
 
Nested Tags:  br  go  img  prev  refresh
 
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.
 
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.
 
title
The optional title attribute provides a string or text used to identify or describe the link.
 
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">
<p>
<anchor title="anchor tag">
Go To Card 2
<go href="#card2" />
</anchor>
</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