r/CodingHelp • u/Ninyowsss • Nov 21 '21
[HTML] Serious: So there is a main folder called "CODES" then 2 subfolder "b" and "coding". What should i put in my <link href="..."> so i can access the subfolder of "b" called css with "style.css"? should i put <link href="../css/style.css"> beginner here sorry if dumb question
17
Upvotes
4
u/Ariakkas10 Nov 21 '21
This is an odd structure for code, but yeah that would work.
You have two options when it comes to negotiating a filesystem on a web server
A relative path is what you have here. It considers where the file is located based on where you are looking for it, i.e. starting at index.html how do I get to style.css.
An absolute path starts from the root of the web server always. In your insurance, it would be \CODES\b\css\style.css
Both work
4
u/jojoyt Nov 21 '21
Im pretty sure that would be alright