Lesson 3 of 21 – HTML Paragraphs
15%
15%

HTML Paragraphs

A paragraph always starts on a new line and is usually a block of text. In HTML, paragraphs are created using the <p> tag.

HTML paragraphs help organize text into readable sections. They improve the structure of a webpage and make the content easier to understand.

Paragraph tag: <p> ... </p>

What is an HTML Paragraph?

An HTML paragraph is a block of text defined inside the <p> tag. The browser automatically adds some space before and after the paragraph. This makes the text look neat and separated from other content.

Basic Paragraph Example
<p>This is a paragraph.</p>

HTML Paragraph Rules

  • The browser automatically adds margin around paragraphs.
  • Everything inside <p> and </p> is part of the paragraph.
  • Paragraphs display as blocks of text with space above and below.

What Are the Uses of HTML Paragraphs?

HTML paragraphs have many important uses in web development. They help structure text, improve readability, and make content easy to manage.

1. Text Structuring and Readability

Paragraphs help break content into smaller sections. This makes the webpage easier to read and understand. They also separate different ideas or topics clearly.

2. Content Presentation

Browsers apply default styling to paragraphs, such as spacing and line breaks. This gives the text a clean and professional look without extra CSS.

3. Semantics

Paragraphs help screen readers and search engines understand the structure of content. This improves accessibility and SEO.

4. Responsive Design

Paragraphs adjust well on different screen sizes. This helps the content remain readable on mobile phones, tablets, and desktop screens.

5. Styling and Customization

Paragraphs can be styled using CSS. You can change font size, color, spacing, alignment, and line height.

6. Content Grouping

Paragraphs can contain text and inline elements such as links and images. This makes them useful for organizing mixed content on a webpage.

Paragraph Example with Multiple Lines

<p>
This is the first line.
This is the second line.
This is the third line.
</p>

Key Points

  • Text inside the <p> tag starts on a new line.
  • Multiple paragraphs can be created by using multiple <p> tags.
  • Browsers add default margin and padding around paragraphs.
  • CSS can be used to change paragraph style and spacing.
💡 Remember
Paragraphs make your webpage easy to read, properly structured, and visually clean.

🧠 Quiz

Which tag is used for paragraph in HTML?