1D0-720 · Question #60
Which CSS3 property allows for multiple background images for an element?
The correct answer is A. background-image. background-image is the correct answer because CSS3 extended this existing property to accept a comma-separated list of image values (e.g., background-image: url(a.png), url(b.png);), enabling multiple layered backgrounds on a single element. background-repeat controls how a…
Question
Which CSS3 property allows for multiple background images for an element?
Options
- Abackground-image
- Bbackground-repeat
- Cmultiple-background
- Dbackground-composite
How the community answered
(28 responses)- A89% (25)
- B4% (1)
- C7% (2)
Explanation
background-image is the correct answer because CSS3 extended this existing property to accept a comma-separated list of image values (e.g., background-image: url(a.png), url(b.png);), enabling multiple layered backgrounds on a single element. background-repeat controls how a background tiles and has nothing to do with specifying image sources. multiple-background is not a real CSS property - it was never part of any specification. background-composite is also fabricated; while compositing concepts exist in graphics, there is no CSS property by that name.
Memory tip: Think "one property, many values" - CSS3 didn't need a new property for multiple backgrounds, it just let background-image accept a comma-separated list, the same way transition accepts multiple transitions.
Topics
Community Discussion
No community discussion yet for this question.