How Can We Help?
< All Topics

Paragraphs

HTML paragraph tags are used to define the text paragraphs.

When we create any document, we divide text content into multiple paragraphs. Similarly, HTML documents can be divided into HTML paragraphs.

HTML <p> The tag defines a paragraph. This Paragraph tag automatically adds some margin (white space) before and after a paragraph.

Simple Example:

<p>This is a sample paragraph.</p>

HTML Paragraphs – Complete HTML Program Example

You can use multiple paragraphs in an HTML program. The following example consists of three <p> tags.

<html>
<head>  </head>
<body>

<p>This is the first paragraph. You can add any kind of text here. </p>
<p>This is the second paragraph. This is some sample text. </p>
<p>This is another paragraph. You can add multiple lines of text in this paragraph. </p>

</body>
</html>

Table of Contents