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
10 Respuestas
+ 1
Relative path has to be calculated with respect to another URI.
While Absolute path hasn't.
+ 1
No the advantage of an absolute path is that it can point anywhere on the Internet.
0
The relative path starts at the calling folder. The URL of the source itself or from the root of the server.
0
so if i use a absolute path then i have to have it in the same folder and put the whole url?
0
thanks
0
so i just type in the css link and done?
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...
0
figured it out I was just using a text editor and did not have a domain or directory set up
0
Good to hear.
0
yep