0
How do i save a css file
i have a problem saving a css file and linking it to the html
3 Respostas
+ 2
just save your css file in your web directory/folder and use tag <link rel="stylesheet" type="text/css" href="foldername/filename.css" >
just it
+ 1
1. Save the file with this format filename.css *take note the ".css" extension
2. Then paste this file in the header of your html file,
<link rel="stylesheet" type="text/css" href="filename.css">
For example:
<html>
<head>
<link rel="stylesheet" type="text/css" href="filename.css">
</head>
<body>
html contents here...
</body>
</html>
NOTE:
If your css file is not in the same folder with your html file, you have to specify the css path.
Example:
<link rel="stylesheet" type="text/css" href="path_to_css/filename.css">
0
Copy the code in notepad…
Save the notepad file with a name having .css extension and click on save .