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.


Text appearance

There are three ways of making text stand out...

  • Emphasize it <em>

  • Really emphasize it <strong>

  • Make it bold <b>

Of the three, the one to avoid is the bold tag. Why? Well, while the <b> tag will just make your text a bit bolder, and not all phones actually support the tag, every phone will use the <em> and <strong> tags in a different way. Another tag which is not listed here is the <i> tag, as not all phones will support it, use the <em> tag to create italic text instead. The advantage is that the phones will be able to emphasize the text in the best method for that particular phone.

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>

<card id="MainCard" title="This is a first card">
<p align="center">
This is a sample text
<br/>
<b>This is in bold</b>
<br/>
<em>This is emphasised</em>
<br/>
<strong>This is in strong</strong>
</p>
</card>

</wml>