+ 2

Which is more proper: <br /> or <br>?

Even though it works on a webpage, I have seen editors like Bluefish try to append an end tag when I use <br>. Would it be wise to go for <br /> instead?

8th Mar 2017, 5:50 AM
Harvey Houston
Harvey Houston - avatar
4 Respostas
+ 6
<br /> was HTML 4 now in HTML 5 you don't need to close br so just use <br>
8th Mar 2017, 6:25 AM
Kamil
Kamil - avatar
+ 2
In HTML, the <br> tag has no end tag. In XHTML, the <br> tag must be properly closed, like this: <br />.
8th Mar 2017, 6:03 AM
totoro
totoro - avatar
+ 1
Of course <br /> it is standard and you can use it in xhtml too. it make code easy to read and understand.
8th Mar 2017, 7:52 AM
Arrad
Arrad - avatar
0
Thanks everyone. Since I use Bluefish a lot, I'll use <br /> to avoid the problems.
8th Mar 2017, 8:32 AM
Harvey Houston
Harvey Houston - avatar