
|
 |

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>
|

|