Which CSS property adjusts the transparency of an element?
- opacity
- visibility
- transparency
- overlay
The correct option is opacity. This property controls the transparency of an element, with a value between 0 (completely transparent) and 1 (completely opaque). It affects the entire element, including its children.
Loading...
Related Quiz
- In a project that requires support for multiple browsers, including older ones, what strategy should be adopted when using CSS properties that are not universally supported?
- You have a style rule with a class selector that is not being applied, even though another rule with three type selectors is applied to the same element. What could be the reason based on specificity?
- Which CSS property is typically used to set breakpoints in responsive design?
- How can text shadows be used to create an embossed text effect?
- To create a layout that adapts to different screen sizes, developers use ________ queries in CSS.