Can script tags in HTML be closed by simply using:
<script src="https://abc.js"/>
Or do I have to close this script tag like so:
<script src="https://abc.js"></script>
The reason I ask is because in sublime text 3 i have a highlighting problem that is slightly annoying. For example:
Yet when i remove the tag and self close it by "/>" you can see the horrible background highlighting issue goes away.
No indentation but highlighting disappears on line 1
I understand that a separate closing script tag is the standard way to close tags but why is it causing a change of font colour and background highlighting issue.
P.S. in the image it isn't shown very well but in contrast to the rest of the background, the whole line is highlighted a different colour and I cant seem to solve it.