JQuery is a JavaScript library which makes it easier to use JavaScript on a website as the library takes common tasks that requires multiple lines of JavaScript code to achieve, and wraps them into methods that can be called with a line of code.
Of Course, jQuery is one of the countless JavaScript libraries but! its the most popular one. A Library, you asked? Indeed, however we call it a code library in programming. Code libraries are beyond the scope of this tutorial but feel free to try this magical portal:
https://msdn.microsoft.com/en-us/library/kews042w(v=vs.71).aspx
Or jump to this one to see examples of website which are using jQuery: http://www.awwwards.com/websites/jquery/
<script src="
https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script
----> the script tag is used to add JavaScript code references to HTML documents.src="url"
---->the src (source) attribute is used to contain the file path of your JavaScript file.<script src="
https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>
$(document).Ready(function)
{
alert("Watson, look at the sky and tell me what see.");
}
</script>
$(document).Ready
----> Once the HTML document has fully loaded.alert("...");
----> (JavaScript function) Shows a dialog box with a message""
----> Message to be shown using the alert function needs to be quoted; "My Message".;
----> Semicolon required to tell the system that its the end of the alert function.