This is a stupid question, and I am aware that it is; but never the less, here it comes:
Is it possible to close a <script>
-tag within itself, so to speak? I mean if you are using an external javascript-document can you close the tag like this:
<script type="text/javascript" src="xxx.js" />
As far as I am aware of it, no.
Browsers usually ignore self closing script
tags.
Have a look at this topic Why don't self-closing script tags work?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With