•<p>..</p> is used to create
•Usually, manual breaks inside paragraph is ignored by the browser when showing the web page
Example 👇🏻
<p>Hey there!
Come learn frontend with me.
Let's learn
HTML basics.</p>
Eventhough I typed the paragraph in several lines,
The output will be👇🏻
Hey there!Come learn frontend with me.Let's learn HTML basics.
•To actually insert a line break in the output, you need to use <br>
Example 👇🏻
<p>Hey there! <br>
Come learn frontend with me.
Let's learn <br>
HTML basics.</p>
Output 👇🏻
Hey there!
Come learn frontend with me.Let's learn
HTML basics.
💡Fun Fact
<br> tag is one of the examples for empty tags.
Remember we discussed earlier?
Empty tag means, they don't need a closing tag : )
Top comments (0)