HTML Paragraph

The HTML paragraph tag <p> used to define an paragraph element. <p> tag is use to divide the document into HTML sections. It is usually a good practice to use paragraph while dividing large documents into smaller pieces.

It is not necessary to close the <p> tag because it is an unpaired tag, even if you do not close it, your output will also come in, there will be no changes in it.

Paragraph used to divide the document into HTML sections. It is usually a good practice to use paragraph while dividing large documents in smaller pieces. However, HTML does not understand the location created by the browser key. Therefore, a special element or tag, <p> known as the paragraph element, from which we want to start a new paragraph.

When the tag is used, an empty line is added to the top and bottom of the paragraph, the attribute used with the tag, the paragraph tag is block-level element.

Example

<html>
<head>
<title>
HTML Paragraph Tag Example
</title>
</head>
<body>
 <p>This Is First Paragraph</p>
 <p>This Is Second paragraph</p>
</body>
</html>

HTML Paragraph Attribute

The paragraph has only one attribute and its name is align. Align, that means you can select any paragraph from left, or right.

Example

<html>
<head>
<title>
This Is HTML Paragraph Align Example
</title>
</head>
<body>
<p style="text-align:left;">This is Example of Align</p>
<p style="text-align:center;">Hello I Am Here</p>
<p style="text-align:right;">This Is Another Align Example</p>
</body>
</html>