If, for example, your image is in the directory images/image.png
, relative to the HTML file
You would use <img src="https://stackoverflow.com/questions/17406396/images/image.png" />
. This will work both online and locally.
0
solved How to use non-online images in CSS?