Codecademy Forums

Linking CSS and JavaScript to HTML

I cant figure out for the life of me how to link CSS and JavaScript files to my HTML file… Currently–

-Root Folder-
+CSS
-index.css
+JavaScript
-index.js
Index.html… this works fine when linking with ./CSS/index.css or ./JavaScrips/.index.js

but I want to… -Root Folder-
+CSS
-index.css
+JavaScript
-index.js
+HTML
-index.html…

so i want 3 folder inside my root folder one with JS one with CSS and one with HTML but when i try to do this i cant get my JS and CSS linked to my HTML

you need .. to traverse to parent directory.

. represents the current directory, .. is a hardlink for parent directory.

3 Likes