p Tag
- Purpose: The
<p>
tag is a paragraph tag, and it is used to define paragraphs of text. - Usage: It has both an opening
<p>
tag and a closing</p>
tag. It is used to structure and separate blocks of text into paragraphs.
Syntax:
<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>
What is the difference between the Tag and the Tag ?
The <br> tag is used to insert a line break, creating a new line within text or content. It doesn’t have a closing tag and is a self-closing tag. On the other hand, the <p> tag defines a paragraph, separating blocks of text. It has an opening <p> and a closing </p> tag, allowing for the structured organization of text into paragraphs.
Contact Us