+ 2
how to combine css with html in notepad ++ ?
I've gone many tutorials in YouTube and finally cant able...pls say how to....
6 Respuestas
0
Depends where the css file is, if it is inside a folder, then yes, the "folder name" should be included in the path.
For example:
static/css/style.css
style.css is inside two folders: static and css and they should be included too.
+ 14
No, you don't have to mention the directory. You have to mention the file name of your CSS. Like for eg., "style.css" :)
+ 13
If you want to add an external CSS, type this in the head tag of your HTML :
<link href="(your css file name).css" rel="stylesheet" type="text/css">
If you wanna add internal CSS, you can use the <style> tag :
<style>....(your CSS code)....</style>
/* You can put this in both the <body> as well as in the <head> tag */
+ 3
ok...bro....thanks.
+ 2
its ok...i know this code....in notepad++ ..ive opened and coded html....then saved......again opened ...coded css and then saved......
ive done all the lines correctly......
my mistake was the problem in the folder I've saved.....? or the directory i have to mention?....
+ 2
Check if the path to css file is correct.
For example, both files are in
MyWebsite folder
- index.html
- style.css
Then the path should look like this:
<link href="style.css" rel="stylesheet">
Or if the css is inside another folder, for example:
MyWebsite folder:
- index.html
- css (folder):
-- style.css
Then include "css" (name of the folder) in the path:
<link href="css/style.css" rel="stylesheet">