+ 6
How do you link css and html
Please can someone tell me how to link my CSS file to the HTML file so they function as 1 program on my laptop using notepad++
6 Respostas
+ 10
Hi @Daniel!
You must include a <link> tag in your HTML page (between <head> tags), stating where your css file reside by using "href" attribute.. for example:
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
I hope this helps you..
+ 10
Ah noobcoder you came first!
+ 7
To start with, open up your html document in Sublime Text. In the header section, add: <link rel="stylesheet" type="text/css" href="PATHTOCSSHERE">. You want to change "PATHTOCSSHERE" with the path to the css file you are trying to link the html page to.
+ 1
<html>
<head>
<link rel="stylesheet" href=" stylesheet.css">
</head>
</html>
Save your css file as stylesheet.css in same folder where you put all your website stuff.
+ 1
Thank you all very much it worked