WML » Tags » p

Syntax:
<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

Examples

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Card 1">
<p align="left">
DevGuru
</p>
<p align="center">
is
</p>
<p align="right">
great!
</p>
</card>
</wml>
Language(s): WML

See Also: