Wap/WML : Links
Jean-Michel Blanchard
Links between WML Decks
Whatever the link, whether internal or external, the technique used for creating hypertext links is no different from the
one used in HTML. To link the various decks of a site, or an external site (also in WML), we use the
<a> tag with the
href attribute which determines the targeted resource.
By placing links in a table, you obtain the following result:
<card id="card" title="Table">
<p>
<table columns="2">
<tr><td> <a href="page2.wml">News</a> </td><td> Search </td></tr>
<tr><td> <a href="http://wap.com/">WapUK</a> </td><td> Directory </td></tr>
</table>
</p>
</card>
On a WAP screen, the links appear underlined and can be selected using the device's navigation system:
Figure 1: Links in a table
First card. Remember that when a deck is loaded it is always the first card which is displayed first.