Complete the code to change the background color when hovering over the button.
button:hover {
background-color: [1];
}The :hover selector applies styles when the mouse is over the element. Setting background-color to blue changes the button's background on hover.
Complete the code to change the text color on hover for links.
a:hover {
color: [1];
}The color property changes the text color. On hover, setting it to green changes the link color.
Fix the error in the hover selector to apply a border on hover.
div[1] { border: 2px solid black; }
The correct CSS pseudo-class for hover is :hover. It must have a colon before the word.
Fill both blanks to change the font size and add underline on hover for paragraphs.
p[1] { font-size: [2]; text-decoration: underline; }
Use :hover to apply styles on hover. Setting font-size to 20px changes the text size when hovered.
Fill all three blanks to change the button's background, text color, and cursor on hover.
button[1] { background-color: [2]; color: [3]; cursor: pointer; }
Use :hover to style the button on hover. Set background-color to blue and color (text color) to white for good contrast.