What is Difference between <br> and <br /> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is Difference between <br> and <br />

Plzz help

7th Apr 2020, 6:16 AM
Saqib Bilal
Saqib Bilal - avatar
8 Answers
+ 4
Nothing really, the '/' is optional
7th Apr 2020, 6:37 AM
Cmurio
Cmurio - avatar
+ 3
Nothing really. Both works same way. They are self-closing tags which does not require ending tags, so even if you don't selfclose it, it will not cause any problem. It's just like <img src=""> and <img src="" />
7th Apr 2020, 6:23 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 3
There is no difference between them.
7th Apr 2020, 7:12 AM
Pranav Kalro
Pranav Kalro - avatar
7th Apr 2020, 9:28 AM
narayanaprasad
narayanaprasad - avatar
+ 1
All are the same . It's just your choice ... They both do the same thing
8th Apr 2020, 2:32 PM
Adejumo Dandex
Adejumo Dandex - avatar
+ 1
<br/> is the form correct of write, but is optional. 😊
8th Apr 2020, 4:50 PM
Josshual A. Toro M.
Josshual A. Toro M. - avatar
+ 1
I think, there's no difference between them.😅
9th Apr 2020, 5:40 AM
Vighnesh Shukla
Vighnesh Shukla - avatar