agyanadda@gmail.com

HTML Paragraphs

HTML Text & Links 1 min read Updated Nov 30, 2026 Topic 13 of 33

Example

Example — Paragraphs, line breaks and pre HTML
<p>This is the first paragraph.</p>
<p>This is the second paragraph.
   Extra   spaces    and new lines are ignored here.</p>
<p>Use a line break<br>to start a new line.</p>
<pre>
  pre keeps    spaces
  and line breaks
  exactly as typed.
</pre>

Test Yourself With Exercises

Exercise 1 Multiple Choice

Which tag keeps spaces and line breaks exactly as written?

Exercise 2 True / False

Pressing Enter in your HTML code creates a new line on the page.

Frequently Asked Questions

Browsers already add margin around paragraphs. Adjust it with CSS (margin).