HTML br tag

HTML br tag is an HTML tag that allows us to move to the line below. It is a non-closing tag. Meaning, it does not have a closing tag.

It is used as <br>

Usage of br tag

As we can see below, since span tag is not a block element, what we define (image or text) within span tag is seen side by side instead of one under the other. However, we can use br tag to make the second text to move under.

<span>TEXT</span> 
<span>TEXT</span>
TEXT TEXT
<span>TEXT</span> 
<br>
<span>TEXT</span>
TEXT
TEXT

We can use br tag multiple times, and we move down in lines as many times as we use it.

<span>TEXT</span> 
<br><br><br><br>
<span>TEXT</span>
TEXT



TEXT
410 Views
70520cookie-checkHTML br tag

Leave a Reply

Your email address will not be published. Required fields are marked *