Complete the code to make the text color red using !important.
p { color: red[1]; }The !important declaration must be followed by a semicolon to be valid CSS syntax.
Complete the code to override the background color with !important.
div { background-color: blue[1] }Using !important; after the value ensures this style overrides others.
Fix the error in the CSS to correctly apply !important to font-size.
h1 { font-size: 2rem[1] }The !important keyword must be followed by a semicolon to be valid and override other styles.
Complete the code to make the paragraph text green and override other styles using !important.
p { color: green[1] ; }The !important keyword comes right after the value without a semicolon, followed by a semicolon to end the declaration.
Fill both blanks to set border width to 3px and make it important with correct syntax.
div { border-width: 3px[1] [2] ; }The correct syntax is value !important;. The word important alone is invalid without the exclamation mark, but here it is part of the options pool and must be placed carefully. The semicolon ends the declaration.