As you know the paragraph is a block of text and you can define it with <p> tag in Html.
Example:
<p>Paragraph one.</p>
<p>Paragraph two.</p>
Spaces in the paragraph
The browser will ignore A lot of spaces in the paragraph
Example:
<p>I am learning html in a simple way</p>
Output:
I am learning html in a simple way |
Newline
If you write a paragraph in the newline browser will also ignore the newline.
Example:
<p>
I am
learning html in a
simple way
</p>
Output:
I am learning html in a simple way |
HTML Line Breaks
In the above example, you want to put paragraph content in a new line you have to use <br> tag.
Example:
<p>I am learning HTML in a <br>
simple way
</p>
Output:
I am learning HTML in a simple way |
HTML Horizontal Rules
It is used to separate content and is defined with the <hr> tag, it is not necessary to close the <hr> tag
Example:
<p>Paragraph one.</p>
<hr>
<p>Paragraph two.</p>
Output:
Paragraph one.
Paragraph two.