Search Knowledge Base by Keyword

Paragraphs vs Line breaks

Paragraphs

Pressing Enter inserts a new paragraph. This wraps the text in a new <p> block element.

Example:
<p>This is a paragraph</p>

Line breaks

Pressing Shift + Enter inserts a line break. This adds a <br> element within the same paragraph (i.e., does not create a new block).

Example:
<p>This is a paragraph <br>
with a line break</p>

Bad Practice

Please note it is not recommended to use two line breaks <br><br> instead of semantic paragraph tags. Such practice lacks proper structure and can lead to inconsistent styling and accessibility issues.

Example:
This is not a paragraph<br>
<br>
and this neither.

Need help? Feel Free to Ask

Go to Top