Paragraphs [1/17]

In the Structure of HTML Document course you've learned basic tags needed to create a simple HTML page and some auxiliary tags not shown by the browser.

In this course, you will learn tags of logical markup. You can use them within the <body> tag only.

Let's start with a simple tag, <p>; it is used to create paragraphs. By default, a paragraph begins with a line feed and has vertical margins which you can customize with styles.

Do it
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Paragraphs</title> </head> <body> <p>A paragraph is a division of written discourse consisting of several sentences.</p> A paragraph deals with a single topic. You can single out a phrase by making a paragraph of it. Paragraphs usually start with a line feed or are indented. Now you know the paragraph definition. </body> </html>
p { margin-top: 24px; margin-bottom: 24px; }
HTML Academy

Use the p tag to mark up the following three sentences:

  1. "A paragraph deals with a ... topic."
  2. "You can single out a phrase ... of it."
  3. "Paragraphs usually ... are indented."
Theory Check Next