Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 2: Integration of JavaScript with HTML!

Instruction

Comprehensive Guide to External JavaScript in HTML

External JavaScript Integration

The src Attribute

Adding src="myScript.js" to the opening <script> tag means that the JavaScript code will be located in a file called myScript.js in the same directory as the HTML file. If the JavaScript file is located somewhere else, you must change the src attribute to that path. For example, if it is located in a subdirectory called js, it ...