+ 4
How do i bind codes?
i made a HTML code in notepad++. then i made a new css code in notepad++ to style my HTML code ,but how do i bind the documents together to make the HTML pick up the CSS
5 Antworten
+ 2
Check out this code
https://code.sololearn.com/WcBiBdAmDURQ/?ref=app
Just copy HTML codes to a file called index.html
and CSS codes to file called style.css.
Save them
Double click index.html to open web page on your browser.
+ 5
You need to import/insert the css file into the <head> tags using link reference.
+ 3
thanks Paul Grasser. it makes do much sense now
+ 2
Use the <link> tag.
https://www.sololearn.com/learn/CSS/1079/
+ 2
<head>
<link rel="stylesheet"type="text/css"href="mystyle.css">
</head>
put your file name on place of mystyle.css