October 22, 2011

Paragraph Tag, <p></p>

Paragraph tag is consists of opening tag and closing tag. It tells the browser to insert a blank or empty line and then begin a new line or a new paragraph. One of the attribute of paragraph tag is the align attribute — it indicates the alignment of the paragraph: left (the default alignment), center, right and justify. To see its property in action, key in the code given below on your text editor.


<title>Paragraph Tag</title>


<p title="hdskjghfjhg">I am the first paragraph. 
I am aligned left  by default.</p>
<p align="center">I am the second paragraph. 
I am aligned center.</p>
<p align="right">I am the third paragraph. 
I am aligned right.</p>


The code above produces this page in Mozilla Firefox: