What is the difference between Absolute and Relative Path?
An absolute path refers to the complete details needed to locate a file or folder, starting from the root element and ending with the other subdirectories. Absolute paths are used in websites and operating systems for locating files and folders. An absolute path is also known as an absolute pathname or full path.
/C://folder_1/file_1.jpg (We can be any directory in the system)
A relative path refers to a location that is relative to a current directory. Relative paths make use of two special symbols, a dot (.) and a double-dot (…), which translate into the current directory and the parent directory. Double dots are used for moving up in the hierarchy.
./file_2.jpg (We are inside folder_1 directory)
../folder_2/file_2.jpg (We are inside folder_1 directory and used …/ for referring to parent directory of folder_1)