What is Difference between <br> and <br />
Nothing really, the '/' is optional
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="" />
There is no difference between them.
You may find answer in https://www.tutorialspoint.com/html-dom-hasfocus-method
Saqib Bilal So many duplicate questions. Please use search option next time. https://www.sololearn.com/discuss/2230963/?ref=app https://www.sololearn.com/discuss/716283/?ref=app https://www.sololearn.com/discuss/152499/?ref=app https://www.sololearn.com/discuss/66806/?ref=app https://www.sololearn.com/discuss/475/?ref=app https://www.sololearn.com/discuss/685799/?ref=app https://www.sololearn.com/discuss/40527/?ref=app
The first is a HTML tag, the second comes from XHTML. According to the last standard, you don't need to use the closing slash with empty elements, but you can use it for backward compatibility.
All are the same . It's just your choice ... They both do the same thing
<br/> is the form correct of write, but is optional. 😊
I think, there's no difference between them.😅