How to put a new line in html

In HTML, you can create a new line using the <br> element, which stands for "break". This element is used to insert a line break in the text, forcing the text to move to the next line.

Here is an example:

This is the first line of text.<br>
This is the second line of text.

When you use the <br> element, the browser will automatically insert a new line, and the text will move to the next line.

Alternatively, you can use the <p> element, which stands for "paragraph". This element is used to define a paragraph of text, and it will automatically insert a new line at the beginning and end of the paragraph.

Here is an example:

<p>This is the first line of text.</p>
<p>This is the second line of text.</p>

You can also use the <hr> element, which stands for "horizontal rule", to insert a horizontal line that separates the text into different sections. This element is often used to create a visual separation between different parts of a page.

Here is an example:

This is the first section of text.<hr>
This is the second section of text.

Note that the <br> element is used to insert a line break within a paragraph, while the <p> element is used to define a new paragraph. The <hr> element is used to insert a horizontal line that separates different sections of text.