Menu
Coddy logo textTech

Paragraphs

Part of the Fundamentals section of Coddy's HTML journey — lesson 7 of 60.

In HTML, paragraphs are used to show blocks of text. You define them with the <p> tag. 

When you put text between <p> and </p>, the browser will display it as a separate paragraph with some space above and below.

Here’s how you can add a paragraph in HTML:

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

For example, if you're creating an article, the title would be a heading, and the actual text would be a paragraph.

challenge icon

Challenge

Easy

Create an HTML document with two paragraphs. The first paragraph should say "Welcome to our pizza restaurant!" and the second paragraph should say "Explore our menu today."

Cheat sheet

Paragraphs in HTML are created using the <p> tag. Text between <p> and </p> is displayed as a separate paragraph with space above and below.

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

Try it yourself

<!DOCTYPE html>
<html>
    <body>
        <!-- Write code here -->
    </body>
</html>
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals