Html new line

In HTML, there are several ways to create a new line:

  1. BR Tag: The <br> tag is used to insert a line break. It is an empty element, which means it does not have a closing tag.

Example:

This is a paragraph of text.<br>
This is another paragraph of text.
  1. P Tag: The <p> tag is used to define a paragraph of text. It automatically inserts a line break at the end of the paragraph.

Example:

This is a paragraph of text.
<p>This is another paragraph of text.</p>
  1. Line Break Character: You can also use the line break character (&#13;) to insert a new line.

Example:

This is a paragraph of text.
&#13;
This is another paragraph of text.
  1. CSS: You can also use CSS to insert a new line using the white-space property.

Example:

<p style="white-space: pre;">This is a paragraph of text.
This is another paragraph of text.</p>

Note: The white-space property is used to specify the whitespace characters in an element. The pre value tells the browser to preserve the whitespace characters, including line breaks.

It's worth noting that the <br> tag is not a block-level element, it's an inline element, so it won't create a new block-level element, it will only insert a line break.