
|
 |

Paragraphs

In a WAP phone, everything used, must
appear inside a paragraph, whether just plain text, a picture or even a table.
This is actually the same as a normal web page, but where a web page will
forgive you ignoring the paragraph, a WAP phone will not, so you must
use them. You can align
paragraphs to the left, right or center. When you close a paragraph, any
alignment is cleared for the next paragraph. The default alignment for a
paragraph if it is not stated is to the left.
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 simple paragraph
</p>
<p>
This is aimed left
</p>
<p
align="right">
This is right aligned
</p>
</card>
</wml>
|

|