Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1.box { background-repeat: no-repeat; } | APassing a naked string to background-image instead of wrapping the file path inside url(). | |
| 2.banner { background-size: contain; } | BScales the image proportionally to ensure the entire image fits inside the element. | |
| 3Sets a background color using a semi-transparent alpha channel value. | CDisplays the background image exactly once without any tiling or replication. | |
| 4Positions a background image to sit exactly in the middle of its bounding layout block. | DUsing the imaginary value cover-all instead of the standard responsive value cover. | |
| 5.alert { background-image: 'bg.png'; } | E.card { background-position: center; } | |
| 6.hero { background-size: cover-all; } | F.item { background-color: rgba(0,0,0,0.5); } |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
background — Shorthand property to set all background style properties like color, image, position, and repeat in a single declaration..box {
background-color: red;
}.card {
background-image: url('img.png');
}.hero {
background-repeat: no-repeat;
}.header {
background-size: cover;
}.main {
background-position: center;
}