Attribute of <P> Tag
Attribute of <P> Tag
ALIGN
Aligns paragraph text flush left, flush right, or in the center of the document.
Example:<P ALIGN=CENTER>Welcome to s-tutorial...
Possible Values
FT, CENTER, RIGHT
CLASS
Indicates which style class applies to the <P> element.
Example:<P CLASS="dkm">Welcome to cs-tutorial.
Possible Values
Any Class Name.
ID
Assigns a unique ID selector to an instance of the <P> tag. When you then assign a style to that ID selector, it affects only that one instance of the <P> tag.
Example:<P ID="dkm">Welcome to Cs-Tutorial.com
Possible Values
Any ID Name.
STYLE
Specifies Style Sheet commands that apply to the contents of the paragraph.
Example:<P STYLE="background: red;
color: white">
Possible Values
CSS property with value.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the paragraph.
Example:<P TITLE="Paragraph">
Possible Values
Any text Message.
WIDTH
Specifies the horizontal dimension of the paragraph (in pixels).
Example:<P WIDTH=250>
Possible Values
Value in Pixel or Percentage.