0
0
SASSmarkup~5 mins

SASS compilation to CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is SASS in web development?
SASS is a style sheet language that extends CSS with features like variables, nesting, and functions to make writing styles easier and more organized.
Click to reveal answer
beginner
Why do we need to compile SASS to CSS?
Browsers only understand CSS, so SASS code must be converted (compiled) into plain CSS before it can be used on websites.
Click to reveal answer
intermediate
Name two common ways to compile SASS to CSS.
1. Using the command line tool sass.<br>2. Using build tools like Webpack or Gulp with SASS plugins.
Click to reveal answer
beginner
What command compiles a SASS file named style.scss to style.css?
The command is sass style.scss style.css. This converts the SASS file into a CSS file.
Click to reveal answer
intermediate
What is the difference between .sass and .scss file extensions?
.scss uses CSS-like syntax with braces and semicolons.<br>.sass uses indentation without braces or semicolons.<br>Both compile to CSS the same way.
Click to reveal answer
Which tool is used to convert SASS files into CSS files?
ASASS compiler
BHTML parser
CJavaScript engine
DImage optimizer
What file extension is commonly used for SASS files with CSS-like syntax?
A.css
B.js
C.scss
D.sass
Why can't browsers directly use SASS files?
ABrowsers only understand CSS
BSASS files are too large
CSASS files are encrypted
DSASS files are images
Which command compiles main.scss to main.css?
Asass main.css main.scss
Bcss sass main.scss
Ccompile sass main.css
Dsass main.scss main.css
Which feature is NOT provided by SASS?
ANesting selectors
BRunning JavaScript code
CFunctions
DVariables
Explain the process of converting SASS code into CSS that a browser can use.
Think about why browsers need CSS and what happens to SASS files before use.
You got /4 concepts.
    List and describe two ways to compile SASS files into CSS files.
    Consider simple commands and automated tools used in projects.
    You got /4 concepts.