Version-//W3C//DTD HTML 4.01 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
lang NAME #IMPLIEDlanguage code as RFC1766
onclick CDATA #IMPLIEDscript expression; a pointer button was clicked
ondblclick CDATA #IMPLIEDscript expression; a pointer button was double clicked
onkeydown CDATA #IMPLIEDscript expression; a key was pressed down
onkeypress CDATA #IMPLIEDscript expression; a key was pressed and released
onkeyup CDATA #IMPLIEDscript expression; a key was released
onmousedown CDATA #IMPLIEDscript expression; a pointer button was pressed down
onmousemove CDATA #IMPLIEDscript expression; a pointer was moved within
onmouseout CDATA #IMPLIEDscript expression; a pointer was moved away
onmouseover CDATA #IMPLIEDscript expression; a pointer was moved onto
onmouseup CDATA #IMPLIEDscript expression; a pointer button was released
style CDATA #IMPLIEDstyle sheet data; associated style info
title CDATA #IMPLIEDtext; advisory title
Content( #PCDATA | TT | I | B | U | S | STRIKE | BIG | SMALL | EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE | ABBR | ACRONYM | A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO | INPUT | SELECT | TEXTAREA | LABEL | BUTTON )*
End tagOptional </P>
Referenced in ADDRESS APPLET BLOCKQUOTE BODY BUTTON CENTER DD DEL DIR DIV FIELDSET FORM INS LI MAP MENU 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 align="right">This is right-aligned paragraph. This is right-aligned paragraph. This is right-aligned paragraph. This is right-aligned paragraph.

<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 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.

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.

search Search · star Market
2023-06-19 · John December · Terms © johndecember.com