WML » Tags » p

<p> ... </p>

The p tag is primarily used as a container for text and other WML tags. Remember, text in WML cannot stand alone, but must be contained in an element.

This tag also causes a line break to occur, in that the flow of text and images is halted on the current line, and resumes on the next line. Thus, each p element starts on a new line in the display.Note that no additional blank line is inserted such as with the HTML p tag, so this is not a true paragraph break.
This tag can be used to set the alignment and line wrapping values for a paragraph which is accomplished using the align and mode attributes.
If you do not set the text alignment, the default is for the text and images to resume at the left margin of the display.
In general, most browsers automatically line wrap texts that are too long to display in one line and you may find that you cannot turn this line wrapping off.(Line wrapping is used to prevent a long text from disappearing from view by running out of the right margin of the display.) Technically, the default for line wrapping is that the current paragraph element inherits the value of the line wrap mode attribute from the previous paragraph element in the current card. However, if there is no previous paragraph, the current p element inherits the line wrap mode value of the card.
Nested Tags:  a  anchor  b  big  br  do  em  fieldset  i  input  img  select  small  strong  table  u


<?xml version="1.0"?>
<card id="card1" title="Card 1">
<p align="left">
<p align="center">
<p align="right">
Language(s): WML

See Also: