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