Skip to main content
D
HTML
HTML Paragraphs

HTML Paragraphs

HTML paragraphs block chunks of text together.

Read Time
5 min read
Difficulty
Beginner
Last Updated
Jun 15, 2026
Version
v1.0.0

Introduction

HTML groups text blocks using paragraphs. A paragraph starts on a new line, and browsers add space above and below it. The browser removes extra spaces and line breaks in the source code.

Syntax

Syntax
1<p>This is a paragraph.</p>

Example

Example
1<!-- this is a paragraph example -->
2<!DOCTYPE html>
3<html lang="en">
4  <head>
5    <meta charset="UTF-8">
6    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7    <title>Paragraphs</title>
8  </head>
9  <body>
10    <p>This is a paragraph.</p>
11    <br>
12    <p>This is another paragraph.</p>
13  </body>
14</html>

Try it Yourself

Hands-on Practice
Modify the code below to see how it affects the output. This is the best way to learn!
Interactive Editor
1234567891011121314151617181920
Live Preview

Key Points

  • The `

    ` tag creates paragraphs.

  • Paragraphs start on a new line.
  • Browsers collapse extra whitespace.
  • The `
    ` tag forces line breaks.

Up Next

Continue your journey with the next topic.

Go to HTML Styles