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--primary-color: #ff0000; | Amargin: var(--spacing, 10px); | |
| 2font-size: var(--text-lg); | B:root { --main-font: sans-serif; } | |
| 3Declares a global custom property that can be used anywhere in the CSS file. | CInvalid because custom property names cannot contain spaces. | |
| 4Uses a custom property with a fallback value of 10px if the variable is not defined. | DInvalid because the custom property name must be wrapped inside a var() function. | |
| 5body { --main padding: 20px; } | EDeclares a CSS custom property named --primary-color with a red color value. | |
| 6h1 { color: --theme-color; } | FApplies the value stored in the --text-lg custom property to the font-size property. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
var() — A CSS function used to insert the value of a custom property (variable) into other CSS declarations.:root {
--main-color: blue;
}body {
color: var(--text-color);
}:root {
--gap-size: 10px;
}h1 {
margin: var(--space, 20px);
}div {
padding: var(--box-padding);
}