+ 1

HTML 5: Is it <br>, <br/>, or <br />?

I thought HTML 4.01 was supposed to "allow" single-tags to just be <img> and <br>. Then XHTML came along with <img /> and <br /> (where someone said that the space is there for older browsers). so how I'm supposed to format my code when practicing HTML5 is there any difference between <br> and <br/>

27th Dec 2016, 3:17 PM
Gautam Khattri
Gautam Khattri - avatar
2 odpowiedzi
+ 6
Both forms are accepted, as <br> well as <br/>. The number of spaces also does not influence.
27th Dec 2016, 3:32 PM
ManuCarv
+ 3
No.
27th Dec 2016, 3:29 PM
Valen.H. ~
Valen.H. ~ - avatar