+ 1
What is the difference between relative path and absolute path when considering path for url ?
4 Respostas
+ 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?
+ 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
0
So while designing web pages which type of path would be better?
0
Thanks Jason