+ 1

What is the difference between relative path and absolute path when considering path for url ?

2nd Jun 2017, 1:40 PM
GARG
GARG - avatar
4 ответов
+ 1
Relative path means the one relative to your current directory (where you are running the code). Absolute path is the full path in the filesystem. I assume you are working with webpages on the URL, so suppose you are in the home page at google.com. The absolute path to another page might be "http://www.google.com/chrome" and the relative path from the homepage is just "chrome". Make sense?
2nd Jun 2017, 2:02 PM
Jason Runkle
Jason Runkle - avatar
+ 1
Usually you design web pages with relative paths and put them in a domain relative to your root page. At least, it seems unlikely that you would build a website off of absolute paths. Hope that helps
2nd Jun 2017, 4:18 PM
Jason Runkle
Jason Runkle - avatar
0
So while designing web pages which type of path would be better?
2nd Jun 2017, 2:04 PM
GARG
GARG - avatar
0
Thanks Jason
2nd Jun 2017, 4:22 PM
GARG
GARG - avatar