Balise WML <p>
L'élément <p> définit un paragraphe de texte et les navigateurs WAP affichent toujours un paragraphe dans une nouvelle ligne.
Un élément <p> est nécessaire pour définir tout texte, image ou tableau en WML.
Les attributs:
L'élément <p> prend en charge les attributs suivants:
Attribut | Valeur | La description |
---|---|---|
aligner |
|
This is used to change the horizontal alignment of a paragraph. |
mode |
|
Sets whether a paragraph should wrap lines or not. |
xml:lang | language_code | Sets the language used in the element |
class | class data | Sets a class name for the element. |
id | element ID | A unique ID for the element. |
Example:
Following is the example showing usage of <p> element.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml12.dtd">
<wml>
<card title="Paragraph Example">
<p align="center">
This is first paragraph
</p>
<p align="right">
This is second paragraph
</p>
</card>
</wml>
This will produce the following result: