+ 2
In html we d better use which one <br> or <br/>?
2 Answers
+ 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.
+ 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/>