How to add jQuery, a JavaScript Library
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoYCDSYP7nQ90xD2FrK6pGso-9jU-dCQ8szjcBwxVhyR3a9rsk5QnSg-md-ECPkkF3yeXte8d2YAKPS3EDjpf1ahdHqUZPZzR9nNweL5hXow1JhtCR8tWu0IaAOGtXh0kHv7DXyWqueag/s640/%2528Left%2529+Single-server-distribution+%2526+%2528Right%2529+CDN-scheme-of-distribution.jpg)
# Introduction jQuery is a lightweight, JavaScript Library which enables us to use JavaScript in a much easier way. jQuery takes many lines of JavaScript code and wraps them into methods that can be called using a single line of code . It thus makes it a lot simpler to do a lot of common tasks that requires many lines of JavaScript code. Note: There are many JavaScript libraries out there but jQuery is probably the most popular and the most extendable one ( jQuery has plugins for almost any task out there and handles cross-browser issues very well ). # Adding jQuery There are 2-ways to add/use jQuery on a website or blog: Download the jQuery library and self-host it. Include jQuery library from a CDN . # Downloading jQuery library and self-hosting it The jQuery library can be downloaded from its official website jQuery.com 🔗 . It is a single JavaScript file, which is referenced/included with the HTML <script> tag ( <script> tag should be in