Is CSS giving error?

后端 未结 19 1384
傲寒
傲寒 2020-12-29 21:35

At a recent interview I was asked the question \"Is CSS giving error?\" by the interviewer.

Is there an interpreter working behind CSS which blocks

19条回答
  •  梦毁少年i
    2020-12-29 22:25

    "Is CSS giving error ?" - No

    CSS itself don't gives error. It will just ignore that attribute if it is incorrect. If there is syntax error then it will also ignore the same and if any other selector get effected due to syntax error (like missing of '}') that also will be ignored.

    There are various IDE (like visual studio) highlight your errors. As gabe3886 told you can also validate your syntax using W3C CSS Validator

提交回复
热议问题