I have a CSS file that is written in the best style I can. I just tried to validate it and it has about 40 errors. Most of them are like this:
Line 23, Column 3: character "d" not allowed in prolog display: none;
What does that mean? What is "prolog" in a CSS file?
What does this mean?
Line 158, Column 3: this is not an SGML document -ms-text-size-adjust: 100%;
As an older stack question suggests, I suspect you used W3C's html validator when you intended to use W3C's css validator .
Note: CSS validation and cross-browser compatibility are considered mutually exclusive, and best practices demand the latter.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.