Why does “<! --” comment out a style rule, but “<!--” does not?

后端 未结 3 895
灰色年华
灰色年华 2021-02-19 03:17

Take it easy on me. I am just learning HTML.

Accroding to http://www.w3.org/TR/html-markup/syntax.html#comments and many other sites I\'ve seen such as this http://www.w

3条回答
  •  北海茫月
    2021-02-19 04:16

    CSS doesn't accept HTML comments. Instead CSS uses /* comment */ to comment lines. Try that instead.

提交回复
热议问题