Using angular directive, I often have to write tags as follows:
<div ng-custom-directive-attr="xxxx"></div>
<span ng-custom-directive-attr="xxxx"></span>
Is it OK to write them as follows?:
<div ng-custom-directive-attr="xxxx"/>
<span ng-custom-directive-attr="xxxx"/>
If yes, do all major browsers comply with that?
As a side note, one usually write <img/>, and I never saw <img></img> (or seldom seen).