+ 5
In HTML ,when dealing with self closing tags like <br>, <img> etc. Please,which one of the following is best to use:
1. The one with ending slash eg; <br/> 2. The one without ending slash eg; <br> Please I need more explanation on this🙏
3 Antworten
+ 13
For me The one without /
+ 1
The best practice is to use /. It is possible that your web editor read and run it correctly. But when you carrry out this practice in react latter on .. It will throw an error so better to be in good habbits.
0
br tag