How To Link Javascript to HTML Using the Src Attribute
To link a JavaScript file to an HTML document, you need to use the <script> tag.
The Src Attribute
The src attribute allows you to point to a URL that has an external script file.
<script src="js/script.js"></script> — this points to a file called '...
blog.codewell.cc1 min read