- 2 | Add some test code to the file. In your new file my-project. …
- 3 | Add the file to your web page. In your index. …
- 4 | Save your files. …
- 5 | Open the web page in Google Chrome. …
- 6 | Open the Developer Console.
To link a CSS file with your HTML file, you have to write the next script on your HTML file inside the head tag. To link a Js file with your HTML, you only have to add the source of the script inside the body tag or outside; it doesn’t matter.
Where do you place jQuery in HTML?
In the web page write your jQuery code within document ready state in the <script > tag.
How do I add a script to my website?