Not sure why the the self closing tags became widely used
For a while adhering to the open/close conventions helped use tooling / libraries built around the assumptions for XML in dealing with HTML, maybe up through the late 00s/early 10s.
Any utility gains there faded as HTML5 conventions and libraries became more solid, but I still have a bit of the habit, especially with <img/> & <br/>.
Source? https://caniuse.com/xhtml says otherwise
> You couldn't do stuff like <div/> and get away with it.
I just tried on both Firefox and Chromium, they parse it properly.
I don't see a reason to mix html and xhtml today. It will only lead to problems. (I.e using self-closing tags and & mismatches in urls)
If you use <div/> in html the browser will just ignore the end / See https://jsfiddle.net/sw8j9fo2/