script tag with type html
snippet in html

script tag with type html

user2927

<script type="text/javascript">
  /*Detects that you are using javascript or text*/
</script>

how to use script tag

user5001

<script>
 document.getElementById("id").innerText = ("");
</script>

what is the use of script tag in html

user298

<script>
  //Insert JS scripts here
  var html
  html = "You can use the <script> tag to incorporate JS code into your HTML code"
  console.log(html)
</script>