0

I have linked my CSS file in toDo.html like this: <link rel="stylesheet" href="../../reset.css">. This is what the directory looks like:

Web Dev
    |
     - reset.css
     - To Do List (folder)
          |
           - Folder1
                 |
                  - toDo.html

But the stylesheet doesn't load. Instead this error is displayed in console:

Refused to apply style from 'http‍://127.0.0.1:5500/reset.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

All other files present in Folder1 load without any error.

Note: This error is present only when the web page is opened using Live Server extension of VS Code. No error otherwise.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Manav
  • 1
  • 3

0 Answers0