|
|
HTML <p> tag
Syntax
<p> - </p>
Definition and Usage
The P element defines a paragraph. The end
element /p is optional but it is advised to use it to avoid any confusion for
style sheets..
Optional Attributes
| Attribute |
Value |
Description |
| align |
left
right
center
justify |
Specifies the alignment of the text within the paragraph.
Deprecated. Use style sheets |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
Example
| Source |
Output |
<p>this is a paragraph</p>
|
this is a paragraph
|
|
|