HTML <script> Tag

The <script> tag is used to identify a client-side script, such as a JavaScript. Generally uses for JavaScript are image manipulation, form validation, and dynamic changes of content.

Example:-

<script>
document.getElementById(“Testing”).innerHTML = “Hello India!”;
</script>

HTML <noscript> Tag

The <noscript> tag is used to give content for users that have disabled scripts in their browser. The <noscript> tag could contain all the tags that could find inside the <body> tag of a normal HTML page.

Example:-

<script>
document.getElementById(“Testing”).innerHTML = “Hello India!”;
</script>
<noscript>Sorry, your browser doesn’t maintain JavaScript!</noscript>

 

HTML content change by JavaScript

document.getElementById(“Testing”).innerHTML = “Hello India!”;

HTML styles change by JavaScript

document.getElementById(“testing”).style.fontSize = “25px”;

HTML attributes change by JavaScript

document.getElementById(“image”).src = “picture.gif”;

Related Article