What is the difference between <br>and<br /> or <input> or <input />?? And Which is better to write?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between <br>and<br /> or <input> or <input />?? And Which is better to write??

27th Nov 2020, 1:51 PM
Mohan Shrestha
Mohan Shrestha - avatar
2 Answers
+ 7
Mohan Shrestha No difference, Visit this link here detailed info about this topic... https://www.tutorialspoint.com/What-is-the-correct-way-of-using-br-br-or-br-in-HTML
27th Nov 2020, 2:22 PM
ㅤㅤㅤ
+ 1
No difference. Better to use closing tags (<br/>, <input/>) because that support all browsers.. Xhtml require to end tags strictly..
27th Nov 2020, 1:57 PM
Jayakrishna 🇮🇳