The ________ CSS property is used to set an image as the background of an element.
- background-image
- element-background
- image-url
- set-background
The correct answer is background-image. This CSS property allows you to set an image as the background of an element, adding visual interest to the webpage. It's commonly used to enhance the design and appearance of different sections.
Loading...
Related Quiz
- How can you target an ordered list and its list items in a single CSS selector?
- What is the purpose of nesting in CSS preprocessors like SASS?
- The calc() function in CSS allows for dynamic calculations of property values using both fixed and relative units, such as ________.
- Which statement is true about CSS Variables?
- Which CSS property specifies the duration of an animation?