WML <p>  Tag

        The <p> element defines a paragraph of text and WAP browsers always render a paragraph in a new line.

        A <p> element is required to define any text, image or a table in WML.


        The <p> element supports the following attributes:

        • left

        • right

        • center

        This is used to change the horizontal alignment of a paragraph.
        • wrap

        • nowrap

        Sets whether a paragraph should wrap lines or not.
        xml:langlanguage_codeSets the language used in the element
        classclass dataSets a class name for the element.
        idelement IDA unique ID for the element.


        Following is the example showing usage of <p> element.

        <?xml version="1.0"?>
        <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
        <card title="Paragraph Example">
        <p align="center">
        This is first  paragraph
        <p align="right">
        This is second  paragraph

        This will produce the following result:

        WAP Example 3
        Kickstart Your Career

        Get certified by completing the course

        Get Started