I have simple index.html file which I run on port :5500 and after inspect that page, in console
Refused to apply style from ‘http://127.0.0.1:5500/FYP_FRONTEND/HTMLS/FYP_FRONTEND/CSS/style.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Now, I don’t really understand why this happens.
The HTML includes the file like this (which I am pretty sure is correct):
<link rel="stylesheet" href="FYP_FRONTENDCSSstyle.css" />
Wasif Rehman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.