HTML Basics

Paragraph Tag

Posted on 30th April 2013

Paragraph: <p>

The paragraph tags, <p> and </p>, will format the text as a paragraph and add some space before and after.

Code:

<p>This is an example for paragraph tags in HTML. Paragraph alignment can be set using the align attribute. This is my first paragraph.</p>
<p align=center>This is the second paragraph. This paragraph is aligned to the center. The align attribute can have one of the following values: left, right, center, justify.</p>

Displayed as:

This is an example for paragraph tags in HTML. Paragraph alignment can be set using the align attribute. This is my first paragraph.

This is the second paragraph. This paragraph is aligned to the center. The align attribute can have one of the following values: left, right, center , justify


Post a comment

Comments

Nothing yet..be the first to share wisdom.