+ 1

I wrote a code in a text editor(index.html)index.css).so when I tried to run the code the css does not seem to link

Linking CSS to html

15th May 2019, 9:14 PM
John
John - avatar
5 Respostas
+ 3
To link a css to your HTML file what you have to do is: <link rel="index.css" />
15th May 2019, 10:07 PM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
+ 1
Put this code in your Html head section: <link rel="stylesheet" href="index.css"/>
15th May 2019, 11:00 PM
Fidelis Musamba
Fidelis Musamba - avatar
+ 1
Juan David Padilla Diaz thanks So I did this <link rel="stylesheet" type="text/css" href="web/css/index.css"/> Bcoz I kept the files inside a folder called web,and a sub folder of the web called css but still does not work
16th May 2019, 12:17 AM
John
John - avatar
16th May 2019, 12:17 AM
John
John - avatar
0
You are welcome John
16th May 2019, 1:25 AM
Fidelis Musamba
Fidelis Musamba - avatar