HTML provides the
<br> tag in order to break lines. The line break tag can be useful to end the current line and jump to the next line. The line break tag simply acts line a new line in a text file. In this tutorial, we examine the line break tag and usage examples. The <br> tag does not have an end tag which makes it easier to implement.
In this example, we implement multiple line breaks using the <br> tag.
<html> <body> İsmail Baydan<br> Ahmet Ali Baydan<br> Elif Ecrin Baydan<br> </body> </html>
Line Breaks in A Single HTML Line
By default, HTML does not provide an end of the line like a text file. We can put HTML content into a single line and insert a <br> tag to create new lines for the visual display of the HTML web page. In the following example, we see a single HTML line but it will be displayed as 3 lines in the browsers.
<html> <body> İsmail Baydan<br>Ahmet Ali Baydan<br>Elif Ecrin Baydan<br> </body> </html>