+ 1
In the <hr\> tag
Is it necessary to put \ cause it is still working
5 ответов
+ 3
<hr /> with forward slash is in XHTML syntax.
<hr> is the correct HTML5 variant. In your case, even if you misstyped it, the browser sees it as <hr> anyway.
+ 1
the \ is not necessary
source: https://www.w3.org/TR/html-markup/hr.html
0
I think not bcoz this tag needs no end tag
0
In html5 it will still work. But if you want your document readable by XML parsers, you must use / slash and write as <hr /> with a space between hr and /.
0
no its not