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
EasyCreate 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>This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
2Text and Formatting
HeadingsParagraphsLine BreaksBold and Italic TextBold and Italic AgainRecap - Formatting8Forms and Inputs Part 1
Form BasicsText InputsInput AttributesPassword FieldLabels for InputsRecap - Basic Form11Event Registration Page
Project OverviewHeader Section9Forms and Inputs Part 2
Radio ButtonsCheckboxesDropdownsButtonsButtons in FormsRecap - Forms #1Recap - Forms #2