what is relative path and absolute path code example

Example 1: absolute path and relative path

/* Absolute Path */
https://www.w3schools.com/images/picture.jpg

/* Relative Path */
/images/picture.jpg

Example 2: absolute 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.

Example:
http://www.foo.com/images/kitten.png

Tags:

Misc Example