Welcome visitor
* Login
* Register
It is currently July 18th, 2019, 5:22 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  absolute and relative path
PostPosted: May 15th, 2009, 8:16 pm 

Posts: 22
hi, im creating my website and some people suggest me to use "relative" paths for my links and images, but what are the other options and why the realtive is best?


Top
 Profile  
 
  Re: absolute and relative path
PostPosted: May 15th, 2009, 10:53 pm 
User avatar

Posts: 112
Absolute path is the complete url
<img src="http://site.com/folder/file" />
<a href="http://site.com/folder/file"></a>

Relative is taking the current address as the starting point.
<img src="file" /> 
this line used on"http://site.com" will call the file located on "http://site.com/file" and
<img src="folder/file" /> 

will call the file located on "http://site.com/folder/file". So, as you can see, it would be easier to work with relative paths on your own site but absolute paths are needed to link many sites. Also, relative paths gives you the option to keep your links/images working when you move your site.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron