I can't link a css file with a html file. Can someone help me? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I can't link a css file with a html file. Can someone help me?

The colors(background, color) don't show up on the web page.

21st Sep 2019, 10:15 PM
-DSaus-
-DSaus- - avatar
2 Answers
+ 1
you need a link to the css file in the <head> section of your html page. ie <link rel="stylesheet" type="text/css" href="style.css"> assuming your css sheet is saved as "style.css"
21st Sep 2019, 10:24 PM
Bill
Bill - avatar
0
Bill Thanks, i resolved the problem before your answer though, i think there was something wrong with the save status.
21st Sep 2019, 10:56 PM
-DSaus-
-DSaus- - avatar