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.

Attributes:

The <p> element supports the following attributes:

Attribute Value Description
align
  • left

  • right

  • center

This is used to change the horizontal alignment of a paragraph.
mode
  • 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.

Example:

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

This will produce the following result:

wap-example3 (2)

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

WML Topics