Html new line tag

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

  1. BR Tag: The <br> tag is used to insert a line break, which means a new line will be created. It is often used to separate paragraphs or to create a new line within a paragraph.

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 creates a new line before and after the text.

Example:

<p>This is a paragraph of text.</p>
<p>This is another paragraph of text.</p>
  1. Line Break: You can also use a line break by simply pressing the Enter key twice in the HTML code. This will create a new line.

Example:

This is a paragraph of text.

This is another paragraph of text.
  1. Pre Tag: The <pre> tag is used to define preformatted text. It preserves the formatting of the text, including line breaks.

Example:

<pre>This is a paragraph of text.
This is another paragraph of text.</pre>
  1. NL Tag: The &#13; or &#10; entities can be used to create a new line. These entities represent a line feed (LF) or a carriage return (CR) character, respectively.

Example:

This is a paragraph of text.&#13;
This is another paragraph of text.

Note that the BR tag is the most commonly used method to create a new line in HTML.