Why did developer write "br/" in this example? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why did developer write "br/" in this example?

22nd Nov 2018, 10:10 AM
Михаил Макаркин
Михаил Макаркин - avatar
2 Answers
+ 5
Не совсем понятен твой вопрос, лучше бы ты показал пример кода. Вообще, если речь идет про html, то здесь тег <br> нужен для переноса строки
22nd Nov 2018, 10:29 AM
TanyaM
0
<br> puts a line break(one free line) before the next content in the document. There are the alternatives: <br/> and <br /> They are only there for compatibility with XHTML; to make it work as HTML. And just so you know, <br> is enough; you don't need the /.
12th Dec 2018, 5:28 PM
Panayot Zhaltov
Panayot Zhaltov - avatar