0
0
SASSmarkup~5 mins

First SASS stylesheet - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is SASS in web development?
SASS is a tool that helps write CSS faster and easier by using features like variables and nesting.
Click to reveal answer
beginner
How do you write a variable in SASS?
You write a variable with a $ sign, like $main-color: #3498db; to store a color value.
Click to reveal answer
beginner
What does nesting mean in SASS?
Nesting means putting CSS selectors inside others to show they belong together, making code cleaner.
Click to reveal answer
beginner
How do you compile a SASS file to CSS?
You use a tool like the command sass input.scss output.css to turn SASS into normal CSS.
Click to reveal answer
beginner
Why use SASS instead of plain CSS?
SASS saves time and keeps styles organized with features like variables, nesting, and reusable code.
Click to reveal answer
Which symbol starts a variable in SASS?
A@
B#
C$
D%
What is the main benefit of nesting selectors in SASS?
AIt makes CSS code shorter and easier to read
BIt changes how browsers display the page
CIt adds animations automatically
DIt removes unused CSS
How do you convert a SASS file to CSS?
ABy writing CSS inside <style> tags
BBy renaming the file extension to .css
CBy opening it in a browser
DUsing the command <code>sass input.scss output.css</code>
Which of these is a valid SASS variable declaration?
Afont-size: $16px;
B$font-size: 16px;
C#font-size = 16px;
D@font-size: 16px;
Why might a developer choose SASS over plain CSS?
ATo use variables and nesting for easier styling
BBecause SASS runs faster in browsers
CBecause CSS cannot style colors
DTo avoid writing any CSS code
Explain how to create a simple SASS stylesheet with a variable and nested selectors.
Think about how variables store values and nesting groups related styles.
You got /4 concepts.
    Describe the steps to convert a SASS file into a CSS file that browsers can use.
    Remember browsers only understand CSS, so SASS needs to be changed first.
    You got /4 concepts.