What does being absolute or relative mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What does being absolute or relative mean?

8th Jun 2016, 7:56 AM
Mohammad Fahad Sayed
Mohammad Fahad Sayed - avatar
3 Answers
+ 6
absolute path is full path to your destination, including protocol e.g. "http://", " ftp://" etc. Use it when you need to point target source somewhere in the outside web. example: <a href="http://site.com/folder/page.html"> relative path is used to point target source in the folders on the web-server in which current page is located. You don't have to type full path, only filename and path. examples: <a href="page.html"> means page.html file, nested in the same directory with your html file. <a href="myfolder/file.html"> means file.html file, located in myfolder subfolder, which is located in the directory with your html file. I.e. relative path is path relating to your current html file.
8th Jun 2016, 4:15 PM
Ivan Nikolaev
Ivan Nikolaev - avatar
+ 2
@Ivan Nikolaev Thnx. 😀
27th Jul 2016, 11:22 AM
Mohammad Fahad Sayed
Mohammad Fahad Sayed - avatar
+ 1
You can be absolutely awesome or relatively awesome. If you're relatively awesome, you might own a sports car, date a super model, live in a mansion, and have perfect teeth. if you're absolutely awesome, you can type in over ten languages.
23rd Nov 2016, 5:04 AM
Marc Boutin
Marc Boutin - avatar