0

can I use </br> in place of the normal <br>

both of them work, but today my teacher scolded me over using the former :/ will it have any bad impression on examiners and developers (in real life)

28th Jun 2016, 1:55 PM
Aditya Sher
Aditya Sher - avatar
5 Réponses
+ 2
Browsers will see </br> as <br>. The correct HTML5 is simply <br>. <br /> is also valid but that was a remainder from XHTML.
28th Jun 2016, 5:15 PM
ZinC
ZinC - avatar
+ 2
I have tried it for many years it works , maybe just a result of the fact that HTML is not such a sensitive language
28th Jun 2016, 3:53 PM
Aditya Sher
Aditya Sher - avatar
+ 1
No need
28th Jun 2016, 2:12 PM
M0H4MM4D
M0H4MM4D - avatar
+ 1
Nope, but you could surely use ‹br /› instant ‹br› ...
28th Jun 2016, 3:31 PM
Ayush
Ayush - avatar
0
I mean is it a valid tag "
28th Jun 2016, 2:14 PM
Aditya Sher
Aditya Sher - avatar