how can i add a css file to a html file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can i add a css file to a html file?

I wrote a html code and added the CSS too but when I click the .html file it only shows the html's output. I can see any difference between the old .html file and the file after adding CSS.

18th Feb 2017, 2:26 PM
Hossain
Hossain - avatar
2 Answers
+ 1
how do you add css file?
18th Feb 2017, 4:03 PM
saqib ali
saqib ali - avatar
+ 1
If your html and css file are in the same folder: Place this tag inside your <head> tag in your html file. <link rel="stylesheet" type="text/css" href="stylesheet.css"> (Remember to change the name to your. css file) If it's another folder, you will have to change what's after href.
18th Feb 2017, 5:04 PM
Albert Marc
Albert Marc - avatar