HTML Tag <P>

HTML Tag <P>

<P> Indicates a paragraph in a document.

Attribute of <P> Tag

ALIGN

Aligns paragraph text flush left, flush right, or in the center of the document.

<P ALIGN=CENTER>Welcome to s-tutorial...

Possible Values

FT, CENTER, RIGHT



CLASS

Indicates which style class applies to the <P> element.

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

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

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

<P TITLE="Paragraph">

Possible Values

Any text Message.



WIDTH

Specifies the horizontal dimension of the paragraph (in pixels).

<P WIDTH=250>

Possible Values

Value in Pixel or Percentage.




Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad