Home »
MCQs »
Advanced CSS MCQs
Which is correct CSS statement to define blue background color with opacity?
6. Which is correct CSS statement to define blue background color with opacity?
- background-color: rgba(0, 0, 255, 0.3)
- background-color: rgba(0, 0, 255, 255)
- background-color: rgba(0, 255, 255, 0.3)
- background-color: rgba(0, 0, 1, 0.3)
Answer: A) background-color: rgba(0, 0, 255, 0.3)
Explanation:
The CSS statement (background-color: rgba(0, 0, 255, 0.3)) specifies the blue background with an opacity.