How to connect css file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to connect css file?

my external css file is not connecting with a html file one my css file name- connect css.css <link rel="stylesheet" href connect css.css">

9th Sep 2018, 10:15 AM
Vivek Garg
Vivek Garg - avatar
6 Answers
+ 2
use href="connect css.css" you forgot ="
9th Sep 2018, 10:43 AM
michal
+ 2
Where is the HTML file at the moment?
10th Sep 2018, 3:47 PM
Janning⭐
Janning⭐ - avatar
+ 1
So sorry. Try removing the space from the filename. I don't know if it matters, but otherwise it should work.
9th Sep 2018, 12:11 PM
michal
0
michal sir, I did it. i forget to type here. rather than it is not happening
9th Sep 2018, 11:30 AM
Vivek Garg
Vivek Garg - avatar
0
<link rel="stylesheet" href="css/styles.css"> try this. create a folder called CSS , in the same location where your index page is , save your styles in this folder. Then write the code above when done
10th Sep 2018, 6:46 AM
Tass Jomo
0
thanx michal sir, Tass Jomo sir.
10th Sep 2018, 6:53 AM
Vivek Garg
Vivek Garg - avatar