Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
I have started learning web development, with HTML, jQuery and JavaScript. I want to include jQuery in one of my examples and link it to HTML page. How can I link jQuery if I am having a separate file?
To link a separate js file in HTML is quite an easy task. We will see here how to link jQuery in an HTML web page. The linking code comes inside the <head> tag.
Here’s our HTML file, which links to a jQuery file new.js,
Here’s new.js file, with the fadeIn() method, which changes the opacity, for selected elements, from hidden to visible. It is to specify the speed of the fading effect, which can be slow or fast.