Complete the code to set the background color of the body to lightblue.
body {
background-color: [1];
}The background-color property sets the background color of an element. Here, lightblue is the correct color value.
Complete the code to make all paragraph text red.
p {
color: [1];
}background-color instead of color.The color property changes the text color. To make text red, use red.
Fix the error in the CSS rule to set font size to 16 pixels.
h1 {
font-size: [1];
}In CSS, font size must include units like px for pixels. So 16px is correct.
Fill both blanks to set the margin to 10 pixels and padding to 5 pixels for div elements.
div {
margin: [1];
padding: [2];
}px.The margin property sets space outside the element, and padding sets space inside. Here, margin is 10 pixels and padding is 5 pixels.
Fill all three blanks to create a CSS rule that sets the font family to Arial, font weight to bold, and text alignment to center for all h2 elements.
h2 {
font-family: [1];
font-weight: [2];
text-align: [3];
}font-family sets the text font, font-weight controls thickness, and text-align sets horizontal alignment. Here, Arial font, bold weight, and centered text are correct.