What is a CSS preprocessor?

Experience Level: Mid-level
Tags: CSS

Answer

A preprocessor is a program that takes one type of data and converts it to another type of data:

  • Haml -> HTML
  • Sass - > CSS
Example CSS

div {
margin: 0 auto;
 width: 960px;
  }
Example SASS

div
 margin: 0 auto
 width: 960px
Related CSS job interview questions