Most scripts, images and other media related to an HTML page are referenced relative to the location of the page.
If the page is on a website, the browser will look for the media at the website.
If the page is on your file system, the browser will look for the media at your file system.
Since...