To use jQuery in your web projects, you can either the library and host it yourself or link to it through a Content Delivery Network (CDN) . For local use, you must download the JavaScript file from the official jQuery website and reference it in your HTML using a tag. How to Download and Install jQuery Locally
Discussion of Should we use CDN or locally download libraies? - DEV Community download jquery html
Add a script tag just before the closing tag of your HTML file: Use code with caution. Alternative: Using a CDN To use jQuery in your web projects, you
Downloading jQuery locally is ideal for or when you need total control over your project's assets. Visit the Download Page: Go to the jQuery Download page. Choose Your Version: - DEV Community Add a script tag just
Best for live sites; it's minified to save space and load faster.
Right-click the link for the version you want and select "Save Link As..." . Save the file (e.g., jquery-3.7.1.min.js ) into a dedicated folder like /js within your project directory.