Paragraph Tag
The HTML CSS controls spacing and appearance. Avoid obsolete presentational attributes such as A paragraph cannot contain many block-level structures such as another paragraph. Browsers may automatically close a A paragraph of text. No. Use separate P elements and CSS margins. No. Use CSS text-align. Use CSS margins and line-height.
Author & Instructor at
plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery,
and web development at plus2net. The tutorials focus on clear explanations, working
examples, and code that readers can test and adapt while learning.
<p> element represents a paragraph of text. Use a separate paragraph element for each distinct paragraph rather than inserting repeated <br> tags to create paragraph spacing.<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>Paragraph spacing with CSS Top ↑
p {
margin-block: 0 1rem;
line-height: 1.6;
}align on paragraphs.Do not put block content inside P Top ↑
<p> when such content begins, producing a DOM different from what the source appears to show.Related Tutorials Top ↑
Frequently Asked Questions Top ↑
What does the P element represent?
Should I use BR tags to separate paragraphs?
Can P contain another P?
How do I align paragraph text?
How do I change paragraph spacing?
Subhendu Mohapatra