Lessons

Validation of CSS code

The CSS language was developed specifically to describe the appearance of web pages. With its help, developers specify the color, font, size and fat content of the text or the size, frame, background image of the block. CSS contains more than 600 properties.

We check the code for compliance with CSS3 standards, so previously correct properties with the prefixes “-webkit-“, “-moz-“, “-ms-” and “-o-” will be marked as an error because they are missing in the [CSS3 documentation] (https://www.w3schools.com/cssref/css3_browsersupport.asp ). Prefixes are justified for experimental properties, like - background-clip: text.

The W3C validator cannot work with vendor prefixes of CSS properties.
The W3C validator cannot work with vendor prefixes of CSS properties.

Popular [online Code validator](https://jigsaw.w3.org/css-validator /) from the W3C (the organization that publishes standards for the entire Internet) checks the code only according to the approved CSS language specification. It does not support vendor prefixes “-webkit-“, “-moz-“, “-ms-” and experimental features that have not yet been officially published in the language standard. In this connection, it gives out a huge number of false positives. We check the code based on [up-to-date documentation](https://developer.mozilla.org/en-US/docs/Web/CSS /), which browsers use.

Tariff plans for working with the service

We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree