Complete the code to set the background color to blue.
body { background-color: [1]; }The property background-color sets the background color of an element. Here, blue is the correct value.
Complete the code to select all paragraphs.
[1] { color: red; }div.The selector p targets all paragraph elements in the HTML.
Fix the error in the CSS rule to properly set font size to 16 pixels.
h1 { font-size: [1]; }The font size value must include units like px to be valid. So 16px is correct.
Fill both blanks to create a CSS rule that sets margin to 10 pixels and padding to 5 pixels.
div { margin: [1]; padding: [2]; }em instead of px here.Margin and padding values need units. Here, 10px margin and 5px padding set spacing in 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.
p { font-family: [1]; font-weight: [2]; text-align: [3]; }This CSS rule sets the font family to Arial, makes the text bold with bold, and centers the text with center.