The p tag is used to publish any text on the web page. <p> is its start tag and </ p> is the end tag. You can write any of these start and end tags. This paragraph will appear in the browser as paragraph format.

Such as

<p>When encountering a new paragraph "<p>" tag, the browser typically inserts one blank line plus some extra vertical space into the display before starting the new paragraph.</p>

Attribute can be used in this tag, as the following attributes are used most often

Align, class, id, style, title Also the event attribute onmouseover, onclick, etc. can be used.

Using class and id attributes, it is not just this p element but it can be named after all the elements, then the CSS is named after that name. You can see more details in the CSS tutorial. Here are some applications of align, title and style attributes shown

<p align=”right”>Most browsers automatically left-justify a new paragraph.</p>

<p align=”center”>To change this behavior, the align attribute for the “<p>” tag and provide four kinds of content justification: left, right, center, and justify.</p>

<p style=”background-color:#f00;” title=”This is tooltip tile”>You may specify a paragraph only within a block, along with other paragraphs, lists, forms, and preformatted text</p>


** The only element to save space and time here is to actually have these elements inside the <body> </ body> and must follow the complete structure of the document. This means that they must be kept inside a complete document. Like in the Doc Type tutorial.


Take the mouse over the last lineup to see the effect of itle attributes. Notice here that we have used multiple attributes in one element. You can use more if you want