HTML - Paragraphs

  »   Basic HTML  »   HTML Tutorial - Paragraph <p> Tag

The paragraph is a base element in text editing. The tag for a paragraph is <p>.

He places an empty line above and under the text to make it evident, and the browser will take it as it is.

html<p>The paragraph is a base element in text editing. The tag for a paragraph is &lt;p&gt;.</p>
<p>He places a empty line above and under the text to make it evident, and the browser will take it as it is.</p>

Demo

The paragraph is a base element in text editing. The tag for a paragraph is <p>.

He places a empty line above and under the text to make it evident, and the browser will take it as it is.

HTML - Paragraph, justify

Paragraphs can be edited almost the same easy way as in a text editor. The next example is made with the help of the justify attribute

html<p align="justify">The paragraph is a base element in text editing. The paragraph is a base element in text editing. The tag for a paragraph is <p>. This one places an empty line above and under the text to make it evident, and the browser will take it as it is.</p>

Demo

The paragraph is a base element in text editing. The paragraph is a base element in text editing. The tag for a paragraph is

. This one places an empty line above and under the text to make it evident, and the browser will take it as it is.

HTML - Centered paragraph

html<p align="center">The paragraph is a base element in text editing. The paragraph<br /> is a base element in text editing. The tag for a paragraph is &lt;p&gt;. <br />This one places a empty line above and under the text to make it evident, and the browser will take it as it is.</p>

Demo

The paragraph is a base element in text editing. The paragraph
is a base element in text editing. The tag for a paragraph is <p>.
This one places a empty line above and under the text to make it evident, and the browser will take it as it is.

In this example every line of the paragraph has been centered in the middle of the page.

HTML - The paragraph aligned to the right, right

html<p align="right">The paragraph is a base element in text editing. The paragraph<br />is a base element in text editing. The tag for a paragraph is &lt;p&gt;.<br />This one places a empty line above and under the text to make it evident, and the browser will take it as it is.</p>

All the lines of the paragraph had been arranged, in the upper example, to the right.