<p>

Draft

Definition

The <p> HTML element is used to define a paragraph of text within an HTML document. It represents a block-level element that separates text into distinct paragraphs.

Here’s an example of how to use the <p> element:

<p>This is a paragraph of text.</p>

In this example, the <p> element contains a sentence that represents a paragraph of text. The content within the opening and closing <p> tags will be displayed as a separate paragraph, with appropriate spacing before and after.

You can use the <p> element multiple times within a document to create multiple paragraphs:

<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>
<p>This is the third paragraph.</p>

In this updated example, three <p> elements are used to create three distinct paragraphs of text.

The <p> element is typically used for ordinary text content, such as paragraphs in an article, blog post, or website content. It is automatically styled by most browsers with appropriate line spacing and margins to visually separate the paragraphs.

It’s important to note that the <p> element should be used for textual content and not for other types of content, such as images or interactive elements. For those cases, you would use other appropriate HTML elements.