HTML5 > Elements of HTML

Line break in HTML5

How to create a line break in html page?

Writing the plain text with line break in html page doesn’t give output with line break in the browser. To explicitly create a line break, we can follow this approach. 

This text is used for breaking of lines, eg.<br />This statement should come in next line.

In the above code snippet, despite both sentences are written into the same line, the output shall display 2nd sentence in the next line.


Notice the 2nd statement is coming in the next line.

 Views: 1184 | Post Order: 5

Write for us