26th Jul 2019, 12:52 AM
Apong Harison
Apong Harison - avatar
6 odpowiedzi
+ 4
Apong Harison using the: <link rel="stylesheet" href=".... .css"> In the <head> tab (which is rather much preferable than the <body> tag). Also you should remove the the links to the code and thread you provided. They do not in anyway relate to your question.
26th Jul 2019, 1:45 AM
Jella
Jella - avatar
+ 2
Okay
27th Jul 2019, 3:56 AM
John Sweeney
0
You also can put css directly in the head. (No need for external css file). I.e.: <head> ... <style> .myclass {color: red;} </style> </head> This way one http request is saved. The minus of this method is that css files cannot be cached.
26th Jul 2019, 4:23 AM
wenz
wenz - avatar
0
YOU JUST NEED TO LINK YOUR CSS TO YOUR HTML FILE USING: <link href="filename.css" rel="stylesheet" type="text/css"> IN HEAD TAG AND YOU MUST KEEP YOUR CSS FILE AND HTML FILE IN THE SAME FOLDER
27th Jul 2019, 10:17 AM
Sparsh Gupta
Sparsh Gupta - avatar
- 1
In the html file Between <head> <link... your css file> </head>
26th Jul 2019, 1:34 AM
Alexis-ng
Alexis-ng - avatar
- 1
<head> <link rel="stylesheet" href="yourfile.css"> </head>
26th Jul 2019, 5:56 AM
DedSec
DedSec - avatar