how to link a CSS file with html File | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

how to link a CSS file with html File

I’ve tried External CSS, But it doesn’t work.

23rd Sep 2017, 3:02 PM
Ahmed shaqanbi
Ahmed shaqanbi - avatar
2 Answers
+ 3
Inside of the head of your html you will need to type <link rel="stylesheet" href="FILEPATH/FILENAME.css" type="text/css"> The attributes can be in any order. Its worth taking a look at sololearns CSS course, it covers linking external stylesheets and alot more basic CSS knowledge.
23rd Sep 2017, 3:12 PM
JoeJoe
+ 13
Thank you very much
27th Nov 2017, 7:30 AM
Ahmed shaqanbi
Ahmed shaqanbi - avatar