+ 3
While designing a website how do I merge html and css files
https://www.sololearn.com/discuss/1902546/?ref=app https://code.sololearn.com/WvUJV76WuUBZ/?ref=app
6 Antworten
+ 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.
+ 2
Okay
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.
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
- 1
In the html file
Between
<head>
<link... your css file>
</head>
- 1
<head>
<link rel="stylesheet" href="yourfile.css">
</head>