How to include external Javascript files

Using tag <script> and SRC attributes, we can include one or more external Javascript files on HTML pages.
The tag for including external javascript files <script> can be placed anywhere within the <html> </html> tag.


<script type="text/javascript" src="filename.js"></script>


<script type="text/javascript" src="myJavascript.js"></script>

How to include jQuery library

Using a <script> tag with an SRC attribute, Jquery libraries can be imported, either downloaded or included with links from hosted CDNs.

Example with downloaded jquery library:

<script src='jquery-3.2.1.min.js'></script>

Example jQuery CDN:

<script src=""></script>

Example Google CDN:

<script src=""></script>

Example Microsoft CDN:

<script src=""></script>