New line html code
In HTML, there are a few ways to create a new line:
- 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>
- 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>
- Line Break Code: You can also use the
or
code to create a new line.
Example: This is a line of text. This is another line of text.
- HTML Entity: You can also use the


code to create a new line.
Example: This is a line of text.
This is another line of text.
Note: The
and
codes are equivalent, but 

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.