The HTML <script> Tag

The HTML <script> Tag

Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.

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

Is used to define a client-side script (JavaScript).

Either contains scripting statements, or it points to an external script file through the src attribute.

The HTML <script> Tag — Structure map

Clickable & Draggable!

The HTML <script> Tag — Related pages: