</> Code Corner

HTML · HTML Tutorial · Lesson 7

HTML Paragraphs

Paragraphs, line breaks, horizontal rules and preformatted text.

The <p> element defines a paragraph. A paragraph always starts on a new line, and browsers add some white space before and after it.

Example

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

HTML Display

Browsers remove extra spaces and extra lines when the page is displayed:

Keep reading “HTML Paragraphs”

Sign up to read the full lesson (7 more parts), try every example in the live editor, and take the 5-question quiz.

Chat with us 👋