<htmlstart/>

Paragraphs

The p element defines a block of text.

The Paragraph Element

The <p> tag creates a paragraph. Browsers automatically add space above and below each paragraph.

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

Text Formatting Tags

<p>This is <strong>bold</strong> text.</p>
<p>This is <em>italic</em> text.</p>
<p>This is <mark>highlighted</mark> text.</p>
<p>This is <code>inline code</code>.</p>
<p>H<sub>2</sub>O and E=mc<sup>2</sup></p>

Line Break

Use <br> for a line break without starting a new paragraph. Use sparingly — prefer CSS margin for spacing.

<p>Line one.<br>Line two still in same paragraph.</p>
🧩

Test Yourself

4 questions
Q1.Which tag defines a paragraph?
Q2.Which tag adds a line break without starting a new paragraph?
Q3.What tag draws a horizontal divider line?
Q4.HTML collapses multiple spaces in text to a single space. True?