HTML Paragraphs and Line Breaks

Paragraphs are defined with the <p> tag. Browsers automatically add an empty line before and after a paragraph.

Example:

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

With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code. The browser will remove any extra spaces and extra lines when the page is displayed.

Line Break

Use the <br> tag if you want a line break (a new line) without starting a new paragraph.

<p>This is<br>a paragraph<br>with line breaks.</p>

This element is empty HTML element. It has no end tag.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive