+ 1

Why isnt <link> working for me on html-css on notepad?

9th Feb 2019, 9:13 PM
Zemichael
Zemichael - avatar
5 Answers
+ 1
What do you mean by "not working"? Have you linked it properly? Try opening the dev console and see if there's an error like "ERR_FILE_NOT_FOUND". Have you included the `rel` attribute and set it to `stylesheet`?
9th Feb 2019, 9:20 PM
Jomari Pantorilla
Jomari Pantorilla - avatar
+ 1
If the html file and css file are both in the same directory, try this. <link href="./replace-me-with-your-css.css" rel="stylesheet" />
9th Feb 2019, 9:23 PM
Jomari Pantorilla
Jomari Pantorilla - avatar
+ 1
And add a type="text/css"
9th Feb 2019, 10:33 PM
Roel
Roel - avatar
10th Feb 2019, 1:20 AM
RdA
RdA - avatar
0
I just can't link HTML to CSS on my PC via notepad
9th Feb 2019, 9:22 PM
Zemichael
Zemichael - avatar