New course! Every coder should learn Generative AI!
Try a free lesson+ 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/>