Many times FCC told me to use “styles.css” as the href value for link element.
But, I’ve been told /.styles.css is the proper way, as /. is a special character combo that says “link me back to the original page”.
Are both equally correct? Does styles.css work because there is no website called styles.css (and so, an attempt to search the page itself is made), or does anything ending with .css automatically link back to the page?
How does the process work though? Right now I understand that there’s 3 different general location groups:
Within the same folder as the referrer
In a different folder, but in the same domain
In a completely different domain
I’m wondering how the compiler figures things out, for example: Checks the same domain folder, then checks the naked/base domain for that path (e.g. Dobar.com/ColorsCSS/SharkPalette/Style1.css), and finally checks the given href string as a naked folder/searches on the web for the full given URL.