In a typical html code where an image is mentioned...
I am in doubt the best way to show the SRC route...
1. where the html file and pic.jpg are in the same directory folder is the following sufficient?
<img SRC="pic.jpg" height=312 width=575>
2. where the html file might be in one folder and the pic.jpg is in another.. say in 'images' sub-directory. Is it shown thus?
<img SRC="/images/pic.jpg" height=312 width=575>
3. Or should it be shown in full... eg.
<img SRC="http://mysite.com/images/pic.jpg" height=312 width=575>
In all cases the route to the html file would be...
I hope I have explained myself clearly enough, folks. Ideally I'm after two things... a. to put all images in the same sub directory, and b. write the code to maximise speedy loading of browsers.
I generally use Composer to layout my pages and upload using an ftp client. When doing this, Composer does not usually specify any sub directories unless manually amended later... at least as far as I am aware.... hence my commom use of example <img SRC="pic.jpg" height=312 width=575>
My query is prompted by the frequency of times I've seen the code line.... images/pic.jpg but I'm only assuming that the authors are placing all (or most) site images all in the same 'images' sub-directory to save duplication of effort and site space.
And finally, is it just shown as "images/pic.jpg"
or is it "/images/pic.jpg"
or is it ".../images/pic.jpg"
Hoping someone would be kind enough to clarify these nagging questions in my mind, please.