HTML » Tags » p

Version: 2.0, 3.2, 4.0

Compability: Explorer 4, 5  Netscape 4, 6

Syntax:
<p> ... </p>

The <p> tag is used to signify the beginning of a paragraph and is analogous to having both a line break and a carriage return occur. The flow of the display of the text and any images is halted on the current line, an entire line is skipped (or a certain amount of white vertical space), and then the flow resumes starting at the left margin (by default).

The closing tag is optional. When another p is encountered, it has the effect of an implied ending /p tag. Therefore, closing /p tags are rarely used. However, it is important to understand that the p tag marks the start of the paragraph and that this tag serves as a container for the text and elements that follow. Depending on the complexity of the layout of your HTML document, you may need to use the closing tag to maintain the page appearance you desire.
 

Examples

Code:
My favorite fish!
<p align="center">
The pseudotrophus "Acei" cichlid came from Lake Malawi in Africa...
<p align="right">
...while the Showa Koi in my pond came from Japan.
</p>
<p>
Do you have favorites?
Output:
My favorite fish!

The pseudotropheus "Acei" cichlid came from Lake Malawi in Africa...

...while the Showa Koi in my pond came from Japan.



Do you have favorites?
Language(s): HTML

See Also: