0

Hello i need help sololearn familly.how can i link css and html???

3rd Feb 2017, 12:43 AM
yakuza
yakuza - avatar
3 Answers
+ 3
yeah you can link CSS in HTML by making a .... <link> in head tag and then make it like this........ <link rel="stylesheet" type="text/CSS" href="style.css" />.... and style.css is the name of your CSS file, and you make any name to your file anyname.css .. and in href attribute, you will put your folder path of CSS file I mean the place of your CSS file on your computer >>>>>>> I recommend putting your CSS file (name it to main.css) in folder his name CSS, and this folder put it in the same folder of your HTML file >>> and then you will link CSS and HTML like this exactly <link rel="stylesheet" type="text/css" href="css/main.css" /> Good luck!
3rd Feb 2017, 1:14 AM
Ibrahim Salama
Ibrahim Salama - avatar
+ 1
In the head of your .html, put something like this <link rel="stylesheet" type="text/css" href="css/main.css" /> in the link above, main.css would be changed to the name of your css file. Also, make sure that you have the .css in the same folder as your .html
3rd Feb 2017, 1:35 AM
Chad Christiansen
Chad Christiansen - avatar
0
choukran @ibrahim salama Fathy
3rd Feb 2017, 1:19 AM
yakuza
yakuza - avatar