Complete the code to define a hover state style for a button.
.button[1] {
background-color: blue;
}The :hover pseudo-class applies styles when the user points to the element with a mouse.
Complete the code to define an active state style for a button.
.button[1] {
background-color: red;
}The :active pseudo-class applies styles when the element is being clicked or activated.
Fix the error in the code to style a disabled button state.
.button[1] { background-color: gray; cursor: not-allowed; }
The :disabled pseudo-class styles elements that are disabled and not interactive.
Fill both blanks to create hover and active state styles for a button.
.button[1] { background-color: lightblue; } .button[2] { background-color: darkblue; }
The first blank uses :hover for mouse-over style, and the second uses :active for pressed style.
Fill all three blanks to create hover, active, and disabled state styles for a button.
.button[1] { background-color: lightgreen; } .button[2] { background-color: green; } .button[3] { background-color: gray; cursor: not-allowed; }
The blanks represent the hover, active, and disabled pseudo-classes respectively, styling the button for each state.