How do i link my css to ma HTML file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do i link my css to ma HTML file

20th Jan 2017, 5:48 AM
Ejeye Timmy
Ejeye Timmy - avatar
6 Answers
+ 38
<link rel = "stylesheet" href = myCss.css"> the css file and the html file, should be in the same directory
20th Jan 2017, 6:07 AM
<^>washika D<^>
<^>washika D<^> - avatar
+ 16
just to add on, you should put the css link between the <head> </head> tag... that will work, if it does not, check your code again...it may be missing something.
20th Jan 2017, 6:34 AM
Daniel Hisa (1,2,3, Let'sCode!)
Daniel Hisa (1,2,3, Let'sCode!) - avatar
+ 2
yeah buh MNE didn't link
20th Jan 2017, 6:29 AM
Ejeye Timmy
Ejeye Timmy - avatar
+ 2
k I'll do that kuz i usually works like that on notepad++ when u code on ma PC thanks a lot I'll check again
20th Jan 2017, 6:36 AM
Ejeye Timmy
Ejeye Timmy - avatar
+ 2
their are three different ways.. inline or scripted at the head or in a separate file...
20th Jan 2017, 4:32 PM
Ahmad S Kanaan
Ahmad S Kanaan - avatar
+ 2
thanks guyz i have seen the problem my stylesheet link was correct buh i forget to use curly braces for ma CSS
20th Jan 2017, 7:52 PM
Ejeye Timmy
Ejeye Timmy - avatar