Complete the code to set the background color of the page to light blue.
body {
background-color: [1];
}The background-color property sets the background color of an element. Here, lightblue is the correct color name to use.
Complete the code to make all paragraphs have a font size of 16 pixels.
p {
font-size: [1];
}The font-size property controls the size of text. Here, 16px sets the font size to 16 pixels.
Fix the error in the code to correctly center text inside a div.
div {
text-align: [1];
}justify which spreads text evenly but does not center it.left or right which align text to sides.The text-align property controls horizontal alignment of text. To center text, use center.
Fill both blanks to create a CSS rule that makes all headings blue and bold.
h1, h2, h3 {
color: [1];
font-weight: [2];
}red instead of blue for color.normal instead of bold for font weight.The color property sets text color, and font-weight controls boldness. Use blue for color and bold for font weight.
Fill all three blanks to create a CSS rule that sets a green border, 2 pixels thick, and solid style around images.
img {
border-color: [1];
border-width: [2];
border-style: [3];
}red instead of green for color.px for border width.dashed or dotted instead of solid style.The border-color sets the border color, border-width sets thickness, and border-style sets the border style. Here, green color, 2 pixels width, and solid style are correct.