Not registered yet?
Register now! It is easy and done in 1 minute and gives you access to special discounts and much more!
By Daniel Marszalek
In my HTML I have link
<link type="txt/css" href="./style.css" rel="stylesheet" />
but this is not working.
But when I link,
<link href="./style.css" rel="stylesheet" />
Then this works
Why is that?
The correct type is text/css, not txt/css.
Browsers default to guessing text/css, but if you explicitly tell them that your CSS is of type txt/css, which they don't know how to handle, they won't read the CSS.