Why can't I link my css rule to my html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why can't I link my css rule to my html?

I am on notepad and trying to link but they will not and I have tried every thing I could think of. and they are both have the .html and .css. I don't know what else to try.

11th Apr 2017, 10:34 PM
Taylor
10 Answers
+ 3
are the CSS file in the same level as the HTML files?
11th Apr 2017, 10:50 PM
Juan Sebastián Reyes Abadía
+ 3
i am asking if the CSS file and the HTML file are in the same folder? , because it can be an address problem
11th Apr 2017, 11:03 PM
Juan Sebastián Reyes Abadía
+ 3
yes, it is ok. check if everything have been written correctly
11th Apr 2017, 11:11 PM
Juan Sebastián Reyes Abadía
+ 1
<link rel="stylesheet" href=" "> href = "path to your css file here"
11th Apr 2017, 10:42 PM
Rose Sevenyears
Rose  Sevenyears - avatar
+ 1
Show me where your file (with fully path to it) And show me your link in html to it.
11th Apr 2017, 10:57 PM
Rose Sevenyears
Rose  Sevenyears - avatar
+ 1
if they're on same level it should look like: <link rel="stylesheet" href="wheel.css"> check "name.css" You can copy this code and just change filename. If it still doesn't work -> check your css for errors and where exactly you put this code. usualy it's inside <head> here </head> if you...just...using it...as regular not project css file :D
11th Apr 2017, 11:13 PM
Rose Sevenyears
Rose  Sevenyears - avatar
+ 1
What is a regular not project css file? sorry I am new to coding
12th Apr 2017, 1:20 AM
Taylor
0
I have done that it still was not working
11th Apr 2017, 10:45 PM
Taylor
0
Juan what do you mean as same level?
11th Apr 2017, 11:00 PM
Taylor
0
yes they are in the same folder is it ok?
11th Apr 2017, 11:07 PM
Taylor