Lesson

Learn Javascript, Javascript and the DOM, Linking Javascript, Codecademy

Lesson Summary

In this lesson we learn how to link a Javascript file to an html file. Linking javascript is done with a script tag. The script tag is usually put at the bottom, before the closing body tag. The script tag should have a src attribute which links to the javascript file location. Once you have linked to your js file correctly, you can then apply javascript code to your website.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: