Whats the purpose of adding linebreaks in this ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Whats the purpose of adding linebreaks in this ?

<br/> here is of no use may be

24th Nov 2016, 4:06 AM
Lokesh Kumar
Lokesh Kumar - avatar
2 Answers
+ 2
The HTML element line break <br> produces a line break in text. It is useful for writing a poem or an address, where the division of lines is significant. Do not use <br> to increase the gap between lines of text; use the CSS margin property or the <p> element. -mozilla
24th Nov 2016, 5:30 AM
Anil Krishna Raj
Anil Krishna Raj - avatar
+ 1
I was being told that the using <br> is not a good practice, so better avoid this and use CSS properties....
1st Dec 2016, 6:51 AM
Mohammed Irfan