Search Google

Sunday 1 February 2015

how to save image on web host

src="images/mypic.gif" means that the image is one folder down from the html document that called for it. This can go on down as many layers as necessary.
src="../mypic.gif" means that the image is in one folder up from the html document that called for it.
src="../../mypic.gif" means that the image is two folders up from the html document that called for it.
src="../images/mypic.gif" means that the image is one folder up and then another folder down in the images directory.
src="../../../other/images/mypic.gif" I'm not even going to try and put this into words. I hope you get the drift.
Note that ../ means to go up a folder, ../../ means to go up two folders, etc.
Also note that in urls, forward slashes are used --> /
rather than a backward slash --> \

No comments:

Post a Comment