+ 1
I have create a CSS external file, it doesn't access with HTML file. why ?
6 Respostas
+ 7
<link rel = "stylesheet" type = "text/css" href = "myStyle.css" />
it definitely should work.
just keep the path correct
+ 6
no not for new browsers
+ 4
1> test without path, just putting right name of css file in href attribute, and the css file in the same folder ( directory ) as your html file.
2> if it works, you should correct the path for good targeting the folder where you want put te css file...
3> else, the mistake take place somewhere in your html code, probably around the <head> content, if not precisely at your <link> tag ;)
0
is the type="text/css" important?
0
@Ishwarya Manikandan type="text/css" is not needed in HTML5, but it is required in older versions, such as HTML4
- 1
i didn't put the id and class. know problem solved.