New line html code

In HTML, there are a few 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 doesn't have a closing tag.

Example: <br>

  1. P Tag: The <p> tag is used to define a paragraph of text. It will automatically create a new line at the beginning and end of the paragraph.

Example: <p>This is a paragraph of text.</p>

  1. Line Break Code: You can also use the &#13; or &#10; code to create a new line.

Example: This is a line of text.&#13;This is another line of text.

  1. HTML Entity: You can also use the &#x0A; code to create a new line.

Example: This is a line of text.&#x0A;This is another line of text.

Note: The &#13; and &#10; codes are equivalent, but &#x0A; is a more modern and widely supported way to create a new line.

It's worth noting that the <br> tag is the most commonly used method to create a new line in HTML, and it is supported by most browsers and devices.