Intermediate
HTML & CSS
Q78 / 100
What does the CSS "background-size: cover" value do for a background image?
Correct! Well done.
Incorrect.
The correct answer is B) Scales the background image, preserving its aspect ratio, so it completely covers the element's background area, cropping parts that overflow
B
Correct Answer
Scales the background image, preserving its aspect ratio, so it completely covers the element's background area, cropping parts that overflow
Explanation
background-size: cover scales the image up or down while preserving its aspect ratio so the entire element background is covered, cropping any excess — commonly used for hero/banner images.
Progress
78/100