HTML Paragraphs

In HTML <p> elements defines a paragraph. Paragraph tag is very basic and commonly used HTML tag. Paragraph tag starts with <p> and ends with </p> tag. Browsers automatically add some white space(a margin) before or after a paragraph.

Syntax
<p> ....</p>
Example
<p>This is paragraph tag</p>

Line Break<br>:

In HTML <br> tag is used to break the line.

Example
<p> This is the first line in paragraph <br> This is the second line in paragraph.</p>

Note: Don't use empty paragraph ex.<p></p> to add extra space in your web pages. The browser may ignore the empty paragraph tags. Use css margin or padding property instead.

HTML Spaces(&nbsp)

To give the space between the elements you can use &nbsp It will give one space between tags. If you created multiple spaces inside the html document using space bar browser will treat as one space, while if you press multiple enter key for the new line browser will create a single space, so use &nbsp for multiple spaces between or use css margin or use <br> tag for new line.

Example
<!DOCTYPE html>
<html>
<body>
<h1>HTML Paragraph tag with Line break</h1>
<p> This is the first line in paragraph <br> This is the second line in paragraph.</p>
<p> This is the paragraph tag example &nbsp;&nbsp;&nbsp; with spaces between words</p>
</body>
</html>

It is not recommended to use multiple &nbsp or <br>

Example
<!DOCTYPE html>
<html>
<body>
<h1>HTML Paragraph tag with Line break</h1>
<p> This is the first line in paragraph <br><br><br><br><br><br><br><br><br><br><br> This is the second line in paragraph.</p>
<p> This is the paragraph tag example &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with spaces between words</p>
</body>
</html>

Above example is the bad practice of HTML. Instead use the margin tag.