Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use <br> multiple times in HTML

Tags:

html

This is my code:

<HTML>
Hello
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Good bye!
</HTML>

Is there an easier way instead of using 10
tags?


1 Answers

<br> is use for line break in html.

If you want to add multiple blank line you can use

<br style="line-height:N;">

where N is the number of blank line or you can write in px

e.g.

<br style = "line-height:100;">

or

<br style = "line-height:100px;">

first one give you 100 blank line and second one give you 100px space

like image 130
Aditya Avatar answered Sep 15 '25 09:09

Aditya