Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Keep this wiki going by contributing to our Patreon!

Coding Question

Coding Question

What is the difference between <br>, <br/>, and <br />?

Pyro - (Talk)14:53, 16 April 2012
Edited by another user.
Last edit: 18:17, 16 April 2012

They all give the same results, but <br/> and <br /> (which are the actually the same thing with just a space, which makes no difference) abide by html standards.

 

So we should use <br/> over <br> and <br />?

Pyro - (Talk)18:18, 16 April 2012
 

<br/> or <br />
Personally, I prefer it with the space. Makes it look nicer.

 

Technically, <br> abides by the HTML spec while <br/> and <br /> abide by the XHTML spec. It is always better to use the XHTML spec because it is the stricter of the two. If it works in XHTML, it will work in HTML. The reverse is not true.

Jbeckh207:02, 17 May 2012