WML Tutorial

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


Paragraphs

Just like in a normal web page, the easiest way to control text, is to insert a line break. That way you can guarantee that the text will feed onto the next line when you want it to. You can close a paragraph as that inserts two line feeds, but then you have to reopen the paragraph again, so I would just use two line breaks to achieve the same effect. The line break tag is <br/>, and unlike most tags, it does not open and close, it just exists where a break is needed.

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>
This is a
<br/>
sample text
<br/>
<br/>
And now after two line breaks
</p>
</card>

</wml>