How do you specify an image as a background in CSS?
A). background: url('image.jpg')
B). background-image: url('image.jpg')
C). background-color: url('image.jpg')
D). image-background: url('image.jpg')
How can you ensure that a background image covers the entire element, even if it's larger than the element itself?
A). background-size: cover;
B). background-size: contain;
C). background-size: auto;
D). background-size: 100%;
What does the background-image property do in CSS?
A). Sets the color of the text
B). Sets an image as the background
C). Adds a border around an element
D). Creates a shadow effect on an element
How can you make a background image stay fixed while the content scrolls on the page?
A). background-attachment: fixed;
B). background-attachment: scroll;
C). background-attachment: local;
D). background-attachment: inherit;
What CSS property is used to create a linear gradient background?
A). background-gradient
B). linear-gradient
C). gradient-color
D). background-color
How can you define a linear gradient that transitions from red to blue?
A). linear-gradient(red, blue)
B). background: linear-gradient(red, blue)
C). background-color: linear-gradient(red, blue)
D). background-color: red; background-color: blue;
How do you specify the size of each background image when using multiple background images?
A). background-size: auto;
B). background-size: 100% 100%;
C). background-size: cover;
D). background-size: contain;
How do you create a repeating background pattern that tiles an image vertically but not horizontally?
A). background-repeat: repeat-y;
B). background-repeat: repeat-x;
C). background-repeat: no-repeat;
D). background-repeat: repeat;
How can you position a background image to be centered both horizontally and vertically within its container?
A). background-position: center center;
B). background-position: center;
C). background-position: top left;
D). background-position: bottom right;
What CSS property is used to create repeating patterns as backgrounds?
A). background-pattern
B). background-repeat
C). background-image
D). background-size