WML » Tags » anchor

Syntax:
<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

Examples

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>
Language(s): WML

See Also: