css script tag html code example
Example 1: script tag in html
<script>
// Write JS here
</script>
<script src="link/to/js/file.js"></script>
Example 2: how to use script tag
<script>
document.getElementById("id").innerText = ("");
</script>