Look into relative and absolute paths. If you’re developing locally (i. e. without server) then you should use relative paths.
Absolute path with specific domain:
Code:
<img src="http://example.com/subfolder/image.jpg" />
Domain independent absolute path (will look for the file from the root directory – in your case this looks for a subfolder in the top directory of the hard disk):
Code:
<img src="/subfolder/image.jpg" />
Relative paths, relative to current HTML document:
Looks for the file in a folder on the same level as the document:
Code:
<img src="subfolder/image.jpg" />
Looks for the file in a folder one level above the current document:
Code:
<img src="../subfolder/image.jpg" />
In CSS and HTML files you write the paths relative to the current file. In external JavaScript files you would write the paths relative to the document where the script is executed (i. e. relative to the file where the path is used).