Head: Script Tag

The <script> element is used to define client-side scripts, such as Javascripts, which can do things like change content, styles or attributes on the webpage. Many browsers are set to disable scripts and will not display them unless you direct it to do so.

A script could look something like this:

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

If you need a refresher on Javascripts, just click here.

Back button Table of Contents Next button