WML Tutorial

Subjects
1. The xml header tag
2. Using cards (and what are they).
3. Page Layout
4. Accepting user input
5. Inserting links.
6. Changing your text appearance.
7. Using pictures.
8. List all the tags.


Inserting buttons
Most WAP phones will have a couple of "soft keys" or buttons for navigation, Normally, one button will be a "go back" button, but the other could be anything else related to the navigation of the WAP site. To set up a button, you begin the command with the line <do type="accept" label="labelname"> you the select the type of command to be carried out when you click on the button, typically a <go href> command for a wml page address. Then finish it with a </do>. In the command would usually be either a hyperlink or a <prev/> tag, which says go back to the previous page.

An example follows...

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.
1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>

<!-- THIS IS THE FIRST CARD IN THE DECK -->
<card id="MainCard" title="This is a first card">
<p align="center">

<do type="accept" label="Page2">
<go href="page2.wml"/>
</do>

<do type="accept" label="back">
<prev/>
</do>

</p>
</card>

</wml>