HTML Paragraphs

Paragraphs in HTML are defined with the <p> tag. A paragraph always starts on a new line, and browsers automatically add some space before and after each paragraph.

Note: HTML ignores extra spaces and line breaks inside paragraphs. If you need line breaks, use the <br> tag.

Example


<p>This is the first paragraph in HTML.</p>

<p>This is another paragraph. Paragraphs are block-level elements.</p>

<p>You can use the <br> tag for line breaks inside the same paragraph.<br>
This text will appear on a new line.</p>

Output in Browser

This is the first paragraph in HTML.

This is another paragraph. Paragraphs are block-level elements.

You can use the
tag for line breaks inside the same paragraph.
This text will appear on a new line.