WML » Tags » a

Syntax:
<a href=... > ... </a>

The a tag is used with the mandatory href attribute 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.

You cannot nest link elements inside of other link elements. However, you can nest the br and img tags in a link element.
 
The anchor tag can also perform the exact same task as the a tag, but the anchor tag requires the use of the go tag to effect the link. It is strongly recommended that you use the a rather than the anchor tag for links.
 
Nested Tags:  br  img

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>
<a href="test17.wml" id="a_tag_test" title="a tag">Test Page</a>
</p>
</card>
</wml>
Explanation:

This example produces a hyperlink with the text 'Test Page'.

Language(s): WML

See Also: