+ 2

how to combine css with html in notepad ++ ?

I've gone many tutorials in YouTube and finally cant able...pls say how to....

25th Jun 2017, 4:01 AM
V Ganapathi Subramanian
V Ganapathi Subramanian - avatar
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.
25th Jun 2017, 4:41 AM
Deckard
Deckard - avatar
+ 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" :)
25th Jun 2017, 4:24 AM
Dev
Dev - avatar
+ 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 */
25th Jun 2017, 4:13 AM
Dev
Dev - avatar
+ 3
ok...bro....thanks.
25th Jun 2017, 4:26 AM
V Ganapathi Subramanian
V Ganapathi Subramanian - avatar
+ 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?....
25th Jun 2017, 4:18 AM
V Ganapathi Subramanian
V Ganapathi Subramanian - avatar
+ 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">
25th Jun 2017, 4:32 AM
Deckard
Deckard - avatar