In html we d better use which one <br> or <br/>? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

In html we d better use which one <br> or <br/>?

7th Oct 2019, 10:47 AM
野生豹猫
野生豹猫 - avatar
2 ответов
+ 6
If you would want to learn react later. You should use <br />, according to react.js rule every tags must has closing tag including self-closing tag.
7th Oct 2019, 2:00 PM
Calviղ
Calviղ - avatar
+ 1
Both, but I’d prefer to use <br> for a few reasons: - It’s more “elegant” (my opinion, of course), - it’s one less character to be typed, - and most of the best IDE’s out there already does the <br> autocomplete instead of <br/>
7th Oct 2019, 1:46 PM
Marcos Rodrigo Sousa
Marcos Rodrigo Sousa - avatar