Styles sheet not connecting. Error message: Refused to apply style from 'http://127.0.0.1:5500/styles.css/' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled

I am getting an error that says it is unable to load my style sheet. The style sheet was being used throughout the entire first lesson but when I tried to do the project it no longer connects. Any help would be appreciated below is my setup in index.html:

Hi,
the message seems self-explanatory.
You have a styles.css style-sheet.
it is used with MIME type test/html instead of text/css.
A feature called strict MIME check is enabled which breaks upon finding incorrect MIME types.

Your options are :

  • Disable MIME check
  • Fix MIME type to the correct one.

I found this GitHub topic that could be of interest for you.

Cheers