Complete list of reasons why a css file might not be working

后端 未结 19 2366
醉酒成梦
醉酒成梦 2020-12-09 02:20

This problem is making me feel like an absolute noob.

Here is the head of my .html file:




        
19条回答
  •  盖世英雄少女心
    2020-12-09 02:34

    1. I had the same problem, and I used the UTF-8 coding for both of my files as follows:

      add @charset "UTF-8"; in CSS file and under tag in HTML file. and it worked for me.

      it makes the same encoding for both the files i.e HTML and CSS.

      You can also do the same for "UTF-16" encoding.

    2. If it is still not working check for the under tag in HTML File where you should mention type="text/css"

提交回复
热议问题