HTML documents are divided into paragraphs. Paragraphs are defined with the <p> tag. <p>This is a paragraph.</p>
Don’t Forget the End Tag
Most browsers will display HTML correctly even if you forget the end tag:
<p>This is paragraph 1 <p>This is paragraph 2</p>
This code will work in most browsers, but don’t rely on it. Forgetting the end tag can produce unexpected results or errors. Future versions of HTML will not allow you to skip end tags.
HTML Line Breaks
tag if you want a line break (a new line) without starting a new paragraph. The
element is an empty HTML element. It has no end tag. Example :
<html> <head> <title>HTML Line Breakes</title> </head> <body> <p>Line 1<br />Line 2<br />rest of remaining text</p></body> </html>
You can never be sure how HTML will be displayed. Large or small screens, different brands of browsers, and resized windows will create different results. Be aware that with HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code. The browser will remove extra spaces and extra lines when the page is displayed. Any number of lines count as one space, and any number of spaces count as as one space. The following example shows how one might naturally think to format a passage of multiline text with the help of paragraph tag.
<html> <head> <title>HTML Line Breakes</title> </head> <body> <p> This is a multiline paragraph with the help of html paragraph text </p> </html>