+ 1

What is the difference between absolute and relative?

20th Sep 2016, 11:41 AM
Farshad Assarpour
Farshad Assarpour - avatar
2 Answers
+ 1
absolute will likely start with http://www. it's web page address is absolutely correct without ambiguities. a relative address could start with a slash or just the name like demopg.htm and if the site was moved to another server, this file might or might not be there. with the relative addresses, the file will be there(hopefully if nobody deleted them lol). both have there place in programming it site.
20th Sep 2016, 11:41 AM
phenry
phenry - avatar
0
in more general terms, an absolute path include the root directory, a relative path is a path relative to the current directory. exemple : /home/user/images/myImg.jpg is an absolute path If the working directory is /home/user/images/ then myImg.jpg is a relative path.
21st Sep 2016, 1:13 AM
ADEL MAHJOUB
ADEL MAHJOUB - avatar