The basic knowledge, function and usage of relative path and absolute path are actually the difference between absolute path and relative path, but the reference points used in describing directory paths are different. Because the reference point of the root directory is the same for all files on the website, the path description method with the root directory as the reference point will be called absolute path.
Specific differences:
If you convert an absolute path into a relative path, you only need to keep the different parts of the two paths and remove the same parts. Their separators are different. In the relative path, you can use the "/"character as the separator of the directory, while in the absolute path, you can use both the "\" and "/"characters as the separator of the directory.
In fact, when writing web pages, absolute paths are rarely used. If you use "e: \ book \ web page layout \ code \ chapter2 \ bg.jpg" to specify the location of the background picture, it may be all right to browse on your own computer, but it will probably not display the picture when uploaded to the web server.
Because when uploading to the Web server, the whole website is not necessarily placed on the e disk of the web server, it may be the d disk or the h disk. Even if it is placed in the E disk of the Web server, the directory "E: \ Book \ PageLayout \ Code \ Chapter2" does not necessarily exist in the E disk of the Web server, so no pictures will be displayed when browsing the Web.