Recall & Review
beginner
What does RGBA stand for in CSS colors?
RGBA stands for Red, Green, Blue, and Alpha. Alpha controls the transparency of the color.
Click to reveal answer
beginner
How do you write a semi-transparent red color using RGBA in Sass?
You write it as
rgba(255, 0, 0, 0.5). The last number 0.5 means 50% opacity.Click to reveal answer
intermediate
What is the difference between using
opacity property and RGBA alpha channel?The
opacity property changes transparency of the whole element including its children, while RGBA alpha changes only the color transparency.Click to reveal answer
intermediate
How can you change the opacity of a color variable in Sass without rewriting the whole RGBA value?
Use the
rgba() function with the color variable and a new alpha value, like rgba($color, 0.3).Click to reveal answer
beginner
What range of values can the alpha channel in RGBA take?
Alpha values range from 0 (fully transparent) to 1 (fully opaque).
Click to reveal answer
What does the alpha value in RGBA control?
✗ Incorrect
Alpha controls how transparent or opaque the color is.
Which Sass function can you use to set the opacity of a color variable?
✗ Incorrect
The rgba() function lets you set the alpha (opacity) of a color.
What happens if you set opacity: 0.5 on a container element?
✗ Incorrect
Opacity affects the entire element and all its children.
Which alpha value means fully opaque in RGBA?
✗ Incorrect
Alpha 1 means fully opaque, 0 means fully transparent.
How do you write a blue color with 30% opacity in RGBA?
✗ Incorrect
Blue is rgb(0, 0, 255), and 0.3 alpha means 30% opacity.
Explain how RGBA colors work and how you can manipulate opacity using Sass.
Think about how red, green, blue, and alpha combine to create colors with transparency.
You got /4 concepts.
Describe the difference between using the CSS opacity property and RGBA alpha channel for transparency.
Consider what happens to child elements when you change opacity versus RGBA.
You got /3 concepts.