In HTML, there are tags which are always self-closed. For example,
<hr>Some content here</hr>does not make any sense. In the same way, there are tags which cannot be self-closed.
<script> tag is one of them.
So This would not work: