Which is more correct to use for a line break? 1)</BR>. 2)<BR /> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which is more correct to use for a line break? 1)</BR>. 2)<BR />

18th Jun 2018, 6:57 PM
Cosmic Skull
Cosmic Skull - avatar
3 Answers
+ 1
well technically you could just do <br> without closing and it should work the same :/
18th Jun 2018, 8:46 PM
<i>TheOfficialOdyssey</i>
<i>TheOfficialOdyssey</i> - avatar
18th Jun 2018, 7:03 PM
Random
Random - avatar
+ 4
I think the second one because the first one is looking like a closing tag and makes the code unreadable for others, but if you're interested in this part you can take a look at the googles style guide which debates especially things like this. https://google.github.io/styleguide/htmlcssguide.html
18th Jun 2018, 7:02 PM
Michael55555
Michael55555 - avatar