- HTML
- CSS ( Cascading Style Sheets )
- JavaScript
Adding jQuery to Web Pages
The jQuery library is contained in a single JavaScript file and can be added to a web page with the following mark-up:
<head> <script src="jquery.js"> </script> </head>
Obtaining the jQuery Library
The jQuery library can be downloaded from jQuery.com. It is available in two forms : minified (for production) and uncompressed (for debugging or development).
Once the library has been obtained, it can be hosted on a web server.
Using a hosted jQuery Library
A number of large enterprises provide hosted copies of jquery on existing Content Delivery Networks (CDN) that are available for public use.
The following examples show how to code the HTML using a hosted library:
//jQuery CDN <head> <script src="http://code.jquer.y.com/jquery-1.9.1.min.js"> </script> </head>
//Google CDN <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery-1.9.1.min.js"> </script> </head>
//Google CDN <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery-1.9.1.min.js"> </script> </head>