How to include CDN Based Version of jQuery in my HTML file?


Easily include jQuery library into your HTML code directly from Content Delivery Network (CDN). Google and Microsoft provide content delivery for the latest version.

You can try to run the following code to learn how to use Google CDN for jQuery:

Example

Live Demo

<html>
   <head>
      <title>jQuery CDN</title>
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
       
      <script>
         $(document).ready(function(){
            document.write("Tutorialspoint!");
         });
      </script>
   </head>
   
   <body>
      <h2>Hello</h2>
   </body>
   
</html>

Updated on: 12-Jun-2020

426 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements