For now, I'll give you a quick intro by showing you an example and explanation.
Explanation of code
<script>tags tell the browser to expect a script in between them.
You can also specify the language by adding
The part that writes the actual text is only 1 line:
Where to put your scripts?
You can place your scripts in any of the following locations:
- Between the HTML document's
- Within the HTML document's body (i.e. between the
- In an external file (and link to it from your HTML document).