Recall & Review
beginner
What is reusable CSS?
Reusable CSS means writing styles that can be used on many elements or pages without rewriting the same code. It saves time and keeps code clean.
Click to reveal answer
beginner
Why use CSS classes for reusability instead of IDs?
Classes can be used on multiple elements, making styles reusable. IDs are unique and should be used only once per page.
Click to reveal answer
intermediate
What is a CSS variable and how does it help reuse?
A CSS variable stores a value (like a color) that you can reuse throughout your styles. Changing it once updates all places using it.
Click to reveal answer
intermediate
How does using utility classes improve CSS reusability?
Utility classes are small, single-purpose classes (like .text-center) that you can combine to style elements quickly without repeating code.
Click to reveal answer
advanced
What is the benefit of separating layout and theme styles in reusable CSS?
Separating layout (structure) and theme (colors, fonts) lets you reuse layout styles with different themes easily, making your CSS flexible.
Click to reveal answer
Which CSS selector is best for reusable styles?
✗ Incorrect
Class selectors can be applied to many elements, making styles reusable. IDs are unique and inline styles are not reusable.
What does a CSS variable start with?
✗ Incorrect
CSS variables start with two dashes, like --main-color.
Why avoid repeating the same CSS code in multiple places?
✗ Incorrect
Repeating code makes it harder to update styles later because you must change many places.
What is a utility class in CSS?
✗ Incorrect
Utility classes apply a single style, like margin or text alignment, making them easy to reuse.
How can you make colors reusable in CSS?
✗ Incorrect
CSS variables let you define colors once and reuse them everywhere.
Explain how to write CSS that can be reused on many elements.
Think about how you can write styles once and apply them many times.
You got /4 concepts.
Describe the benefits of separating layout and theme styles in reusable CSS.
Consider how changing colors without touching layout helps.
You got /4 concepts.