Skip to Content
Real World XML
book

Real World XML

by Steven Holzner
January 2003
Beginner to intermediate content levelBeginner to intermediate
1200 pages
23h 42m
English
Peachpit Press
Content preview from Real World XML

Hyperlinks

WML also supports an <a> element for hyperlinks. Like the HTML version of this element, you use the href attribute to specify the URI you want to navigate to. Here's an example that takes the user to the Apache WML example:

Listing . ch20_13.wml
 
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 2.0//EN"
    "http://www.wapforum.org/dtd/wml20.dtd" >
 <wml>
    <card id="Card1" title="Hyperlinks">
        <p align="center"><b>Hyperlinks</b></p>
        <p>
            Want to see some WML examples?
            Take a look at the
            <a href="http://www.apachesoftware.com/wml/wmldemo.wml">
					Apache examples
					</a>.
        </p>
    </card>
    </card>
</wml>

You can see the results of this WML in Figure 20-12. When the user clicks the hyperlink, Klondike will navigate to the target URI.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Inside XML

Inside XML

Steven Holzner
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0735712867Purchase book