Make a new line in html
To create a new line in HTML, you can use the <br>
tag, which stands for "break". This tag is used to insert a line break in the text.
Here is an example:
This is the first line of text.<br>
This is the second line of text.
When you view this code in a web browser, it will display as:
This is the first line of text. This is the second line of text.
Alternatively, you can use the <p>
tag, which stands for "paragraph", to create a new line. The <p>
tag is used to define a paragraph of text, and it will automatically insert a line break at the 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>
When you view this code in a web browser, it will display as:
This is the first line of text.
This is the second line of text.
Note that the <br>
tag is used to insert a line break within a paragraph, while the <p>
tag is used to define a new paragraph.