Bird
0
0

Which of the following is the correct CSS syntax to set opacity to 0.6 for an element?

easy📝 Formula Fix Q3 of 15
Figma - Color and Fill
Which of the following is the correct CSS syntax to set opacity to 0.6 for an element?
Aopacity = 0.6;
Bopacity: 60%;
Copacity: 0.6;
Dopacity: 6;
Step-by-Step Solution
Solution:
  1. Step 1: Recall CSS opacity syntax

    Opacity in CSS is a decimal between 0 and 1, no percent sign.
  2. Step 2: Identify correct syntax among options

    Only 'opacity: 0.6;' uses correct decimal and colon syntax.
  3. Final Answer:

    opacity: 0.6; -> Option C
  4. Quick Check:

    CSS opacity uses decimal 0-1 [OK]
Quick Trick: CSS opacity uses decimals from 0 to 1 [OK]
Common Mistakes:
MISTAKES
  • Using percent sign in CSS opacity
  • Using equals sign instead of colon
  • Using integer values >1

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Figma Quizzes