Complete the code to set the background color to red using a hex color.
body {
background-color: [1];
}The hex code #FF0000 represents red color in CSS.
Complete the code to set the text color to blue using a hex color.
p {
color: [1];
}The hex code #0000FF represents blue color in CSS.
Fix the error in the hex color code to make the background green.
div {
background-color: [1];
}The correct hex code for green is #00FF00. It must have 6 characters and start with #.
Fill both blanks to set the border color to purple and the text color to yellow using hex colors.
h1 {
border-color: [1];
color: [2];
}#800080 is purple and #FFFF00 is yellow in hex colors.
Fill all three blanks to create a CSS rule that sets background to light gray, text to dark gray, and border to black using hex colors.
.box {
background-color: [1];
color: [2];
border: 2px solid [3];
}#D3D3D3 is light gray, #A9A9A9 is dark gray, and #000000 is black.
