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”;

More Article

Related Article

HTML

HTML Character Sets

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

HTML

HTML Event Attributes

The following event attributes could be added to all HTML elements where applicable. The event attributes are used for specifying the characteristics of an element

HTML

HTML Tags

HTML Tag are used for making front end part which is visible for visitors. HTML Tag are ,