<p> ... </p>
Available in versions: 2.0, 3.2, 4.0
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.
Core Attributes
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
Attributes
align deprecated 4.0
The align attribute is used to determine where and how the paragraph
will be placed on the page.
The permitted values are center, justify, left, and right.
This attribute is deprecated effective with version 4.0.
You are now to use style sheets.
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?
Copyright 2000 by Infinite Software
Solutions, Inc.
Trademark Information
|