0

I can't link CSS with HTML

i saved the file in my laptop using Notepad++ as index.html and it showed results. Now i am entering the CSS codes in New Tab and saving it, but when i refresh the browser window, the CSS results are not there. What's the problem with this thing?

27th Aug 2017, 4:29 PM
Abdul Kabeer Khan
Abdul Kabeer Khan - avatar
5 odpowiedzi
+ 2
Make sure you are editing the html and css in Notepad++. You can modify the styles using the browsers development tools but this is not actually editing the file itself more of editing a copy basically.
27th Aug 2017, 4:35 PM
A_Hook
A_Hook - avatar
+ 1
inside the html file put either a <link> tag with the external css file referenced or put your css in a <style> tag. both tags go in <head> but choose one.
27th Aug 2017, 4:42 PM
A_Hook
A_Hook - avatar
0
Make sure that the css file is in the same folder as the html file
27th Aug 2017, 4:39 PM
Αητοιπe
Αητοιπe - avatar
0
thank you for the info :). could you please tell me the procedure to save the file so that whenever i refresh the browser window, the CSS effects are shown there.
27th Aug 2017, 4:40 PM
Abdul Kabeer Khan
Abdul Kabeer Khan - avatar
0
ok 👍
27th Aug 2017, 4:43 PM
Abdul Kabeer Khan
Abdul Kabeer Khan - avatar