HTML Paragraphs
25 March 2025 | Category: HTML
HTML Paragraphs: A Simple Guide
HTML paragraphs, created with the <p>
tag, group text into blocks, making content readable. They automatically add space before and after. Let’s explore how they work.
Basic Paragraph Example
Here’s a page with paragraphs:
Paragraphs Demo My Story This is my first paragraph, written on March 24, 2025. Here’s a second one for more thoughts.
Paragraphs with Formatting
Add tags inside <p>
for emphasis:
This text has bold and italic parts.
Spacing with Breaks
Use <br>
for line breaks within a paragraph:
First line.
Second line in the same paragraph.
Try It
Save the first example as paragraphs.html
(UTF-8 encoding) and open it in a browser. You’ll see a heading and two paragraphs. Add the formatting or <br>
examples, save, and refresh to see bold text or line breaks in action.
Why Paragraphs?
They organize text for clarity. Experiment with <p>
and nested tags like <strong>
to shape your story!