WML pTag - WML

what is WML <p> Tag?

The <p> element provides a paragraph of text and WAP browsers always to create 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:

Attribute Value Description
  • 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: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.


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

This will produce the following result:

wap-example3 (2)

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WML Topics