<p> element

The <p> element specifies a new paragraph and has alignment and line-wrapping attributes.


Syntax

<p align="alignment" mode="wrapmode">  
   content  
</p>  

Attributes

align 

left | right | center  

Specifies line alignment relative to the display area. Specifying <p> without the align attribute resets the line to left alignment. 

mode 

wrap | nowrap  

Specifies text wrapping mode to use. If you specify nowrap, the device uses another mechanism, such as horizontal scrolling, to display long lines to the user. The device continues to use the mode you specify until you specify a <p> element with the other mode. In other words, 

  • If you specify the mode attribute, the device applies that mode.

  • If you do not specify the mode attribute, the device applies the last-specified mode value. If no previous <p> element exists, the device applies the default mode (wrap).