+ 1

In the <hr\> tag

Is it necessary to put \ cause it is still working

5th Jul 2016, 6:26 PM
Pranav shinde
Pranav shinde - avatar
5 Réponses
+ 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.
5th Jul 2016, 7:39 PM
ZinC
ZinC - avatar
+ 1
the \ is not necessary source: https://www.w3.org/TR/html-markup/hr.html
8th Jul 2016, 8:51 PM
Darwin
0
I think not bcoz this tag needs no end tag
5th Jul 2016, 7:40 PM
Adam Reinhardt
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 /.
8th Jul 2016, 1:08 PM
Rutva Safi
0
no its not
6th Aug 2016, 6:14 AM
LEO 12C Spider
LEO 12C Spider - avatar