Placing JavaScript in HTML

In this lesson we'll see JS and HTML combine forces! Let's begin!

widget

The <script> tag allows you to add inline or external JavaScript to the HTML page. Normally, when the browser reads the <script> tag, it immediately processes the JavaScript found there before reading the other parts of the HTML markup.


Most scripts are either added just before the closing </body> tag or ...