0

what is the difference between a relative path and an absolute path when connecting css to html

i am making a external html file and linking it to a external css file and wondering the difference between the two paths

31st Dec 2017, 7:04 PM
death
death - avatar
10 Answers
+ 1
Relative path has to be calculated with respect to another URI. While Absolute path hasn't.
31st Dec 2017, 7:09 PM
Elias Papachristos
Elias Papachristos - avatar
+ 1
No the advantage of an absolute path is that it can point anywhere on the Internet.
31st Dec 2017, 7:26 PM
josh mizzi
josh mizzi - avatar
0
The relative path starts at the calling folder. The URL of the source itself or from the root of the server.
31st Dec 2017, 7:12 PM
josh mizzi
josh mizzi - avatar
0
so if i use a absolute path then i have to have it in the same folder and put the whole url?
31st Dec 2017, 7:25 PM
death
death - avatar
0
thanks
31st Dec 2017, 7:43 PM
death
death - avatar
0
so i just type in the css link and done?
31st Dec 2017, 7:44 PM
death
death - avatar
0
Here are sone potentially useful links. Not the example for external stylesheet uses a relative path. www.w3schools.com/css/css_howto.asp. html - external style sheets, specifying absolute or relative ... https://stackoverflow.com â€ș questions â€ș e...
31st Dec 2017, 7:46 PM
josh mizzi
josh mizzi - avatar
0
figured it out I was just using a text editor and did not have a domain or directory set up
1st Jan 2018, 1:54 AM
death
death - avatar
0
Good to hear.
1st Jan 2018, 11:29 AM
josh mizzi
josh mizzi - avatar
0
yep
1st Jan 2018, 7:13 PM
death
death - avatar