0
Hello i need help sololearn familly.how can i link css and html???
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!
+ 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
0
choukran @ibrahim salama Fathy