Continually Improving.... let us know how support@devdiamond.net Sign in | Sign up
home articles news blog forum  

 
 


 
Skip Navigation LinksHome > Article > Positioning Tags :: Paragraph Tag
Positioning Tags :: Paragraph Tag
Abstract :
Learn about the Paragraph Tag, and what is it used for.

Views : 2214
Published : Saturday, March 16, 2002
By
HyperLink

Avarage Rating :
Page Page 1 of 1

The P tag is one of the most commonly used tags, but it isn't normally used as shown in the HTML specification. Many users simply add P tag to add a break between paragraphs. As follows:

This text is in paragraph 1.
<p>
This text is in paragraph 2.

The specification uses an ending paragraph tag, as follows

<p>
This text is in paragraph 1.
</p>

<p>
This text is in paragraph 2.
</p>

Because the second example follows the specifications, you should use that format instead of the first example. While browsers will probably always support the first method, the second format has an extra options unavailable in the first. You can add the ALIGN parameter and specify LEFT, RIGHT, or CENTER. An example of the ALIGN parameter follows:

<center>
This text is centered
</center>

<p ALIGN=CENTER>
The first text is also centered
</p>

<-- Back to CENTER Tag -- Next to BR Tag -->



About Author

        Yasir Send Feedback
        Yasir is a .NET expert, with over 5 years experience in Microsoft Technologies, 8 years overall programming experience, he is the owner, founder & primary contributor of Minwar.com, and he also works as IT Director in the hospitality industry.