Version-//W3C//DTD XHTML 1.0 Transitional//EN
Elementp
Purposeparagraph
DescriptionThis element encloses text in a paragraph.
Start tagRequired <p>
Attributes
NameTypeDefaultComment
align( left | center | right | justify )#IMPLIEDtext alignment
class CDATA #IMPLIEDspace-separated list of classes
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( #PCDATA | a | br | span | bdo | object | applet | img | map | iframe | tt | i | b | u | s | strike | big | small | font | basefont | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | ins | del | script )*
End tagRequired </p>
Referenced in address applet blockquote body button center dd del div fieldset form iframe ins li map noframes noscript object td th
Example
SourceAppearance
<h2>Paragraphs</h2>
<p>This is a paragraph with its align attribute set at default. This is a
paragraph with its align attribute set at default. This is a paragraph with its
align attribute set at default. This is a paragraph with its align attribute
set at default.</p>
<p align="right">This is right-aligned paragraph. This is right-aligned
paragraph. This is right-aligned paragraph. This is right-aligned
paragraph.</p>
<p align="center">The paragraph element with its align attribute set to
"center" is a substitute for the <a href="center.html">CENTER</a> element.
Centered paragraph. Centered paragraph. Centered paragraph. Centered paragraph.
Centered paragraph.</p>
<p align="justify">The paragraph element with its align attribute set to
"justify." This is a justified paragraph. This is a justified paragraph. This
is a justified paragraph. This is a justified paragraph. This is a justified
paragraph. This is a justified paragraph. This is a justified paragraph. This
is a justified paragraph. This is a justified paragraph. This is a justified
paragraph. This is a justified paragraph. This is a justified paragraph.</p>

Paragraphs

This is a paragraph with its align attribute set at default. This is a paragraph with its align attribute set at default. This is a paragraph with its align attribute set at default. This is a paragraph with its align attribute set at default.

This is right-aligned paragraph. This is right-aligned paragraph. This is right-aligned paragraph. This is right-aligned paragraph.

The paragraph element with its align attribute set to "center" is a substitute for the CENTER element. Centered paragraph. Centered paragraph. Centered paragraph. Centered paragraph. Centered paragraph.

The paragraph element with its align attribute set to "justify." This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph. This is a justified paragraph.

Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.