Skip to content
Justice Tech School

HTML Paragraphs

The p element defines a paragraph. Browsers add space before and after each paragraph and ignore extra spaces and line breaks in your code.

Example
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<p>Extra     spaces   are   collapsed.</p>

Exercise

Start a paragraph.

<>Hello</p>

Quiz Test

What do browsers do with extra spaces?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.