Complete the code to set the background color of a paragraph to blue.
p { background-color: [1]; }The background-color property sets the background color. Here, blue is the correct color value.
Complete the code to make all h1 headings have a font size of 2rem.
h1 { font-size: [1]; }em and rem units.The font-size property controls text size. Using 2rem sets it relative to the root font size, which is good for accessibility.
Fix the error in the CSS rule to correctly set the text color to red.
p { color: [1]; }#red.The value for color should be red without a semicolon inside the value or incorrect syntax.
Fill both blanks to create a CSS rule that makes all h2 headings bold and blue.
h2 { font-weight: [1]; color: [2]; }normal instead of bold for font-weight.font-weight: bold; makes text bold, and color: blue; sets the text color to blue.
Fill all three blanks to create a CSS rule that sets a class .highlight with a yellow background, black text color, and padding of 1rem.
.highlight { background-color: [1]; color: [2]; padding: [3]; }The background-color is set to yellow, color to black for text, and padding adds space inside the element with 1rem.