What do absolute path and relative path mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What do absolute path and relative path mean?

Can any one explain it for me? Thanks so much

26th Sep 2017, 7:36 AM
C.R.Devila
C.R.Devila - avatar
1 Answer
+ 2
absolute path means the location of a file or folder relative from your system's root folder. relative path means the location relative to your file in which you reference the other file. Example for Ubuntu Linux as OS: Your current file is in /home/user/code/index.html You want to reference style.css in the same folder. Absolute path would be /home/user/code/style.css Relative path would be ./style.css or just style.css
26th Sep 2017, 9:52 AM
PitF
PitF - avatar