+ 3
<hr> or <hr/>?
what are the.difference between them?
5 Respostas
+ 21
HTML4.0: <hr>
XHTML1.0: <hr />
HTML5: both are accepted
[https://stackoverflow.com/questions/18839848/in-basic-html-is-the-correct-horizontal-rule-element-hr-hr-or-hr]
+ 6
Depends on which version of HTML you are about to use :
HTML4.0: <hr>
XHTML1.0: <hr/>
HTML5: both
And there is no more difference than that
+ 4
For HTML5, you can use either one of them.
For React.js, all tags must have closing, you need to use <hr />.
+ 2
actually you can use both in HTML5 but in older versions you've to use <hr/>
0
I use <hr /> just to keep the habit for universal comparability.