I have a confusion with the src attribute. When I insert images in my web site using html, what is more correct with the src attribute: to write the relative location of the image on the root directory or write the URL address of that image? Which is the real difference?
Technically there is no difference. The browser will resolve a relative URL to the full URL anyway.
I think few people use the full URL though. Relative or root relative URLs are more usual. Use what you find most handy.
What is the difference between "relative path" and "absolute path" when I insert an image using html?
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)