jQuery is an external library of JavaScript code. For this reason, we need to add the source of this library onto any page that makes use of it.
Embedding the jQuery library onto a web page is very simple. We can load the file from Google's content delivery network (CDN).
Start by opening Notepad ++ or your favorite text editor and creating the basic html page setup.
Now type the following line of code in-between the <head></head>
tag:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
</body>
</html>
That's it! Your page now includes the latest version of the jQuery library which we will be using through this section.