This quiz goes to full-screen once you press the Start button, or any Next button after exiting the quiz window.
At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
Which property can be used to give a background color to an element?
Choices (B) and (C) are not CSS properties. Hence you're only left with (A). Refer to CSS Background Colors for more info.
How can you stop repeating a background image in both x and y directions?
background-repeat: no-repeat will remove the repetitive behavior from both the x and y directions. Refer to Styling Background Images for more info.
Given an element, add the image 'img.png' to its background.
The url() function takes the URL of an image to be added to an element's background, in the form of a string. Refer to CSS Background Images for more info.
How can we centralise an image in the background both horizontal and vertically?
Choice (B) shows an invalid property value. Choice (C) shows an invalid CSS property. Hence we are left with only choice (A). To know how background-position works refer to Styling Background Images for more info.
Which of the following results best go with the CSS code shown below?