Horje

How to set Default CSS Settings on HTML <script> Tag

Most browsers will display the <script> element with the following default values.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<style>
script {
  display: none;
}
</style>
<body>

<h1>The script element</h1>

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script> 

</body>
</html>

Output should be:

How to set Default CSS Settings on HTML <script> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin