| Viewed 155 times

how to make a new line in html


how to make a new line in html

1 Answer
Mikdam Qandeel
Answered
10

It's an easy thing to start a new line in html, you only need to add  <br> tag, Then write the sentence you want to start the new line with.

Remember: The <br> tag does not have an end tag.

Example:

<p>I am the FIRST sentence
<br>I am the SECOND sentence
</p>

Output:

I am the FIRST sentence
I am the SECOND sentence

You can also add some lines between paragraphs by using the <br> tags.

Example:

<p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. <br> Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. <br> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. </p>

Output: 

Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.