Change background color for div [closed]
The code that I currently have is this:
The problem, however, is that whenever I hover my mouse over the div, the background color of the box does not change to red.
How can I make it so that whenever I hover over divs with class button2 it will change to the background color red? Is there a problem with the formatting?
My current HTML is:
Simple syntax error - you forgot to close
jsFiddle example - it works now
As a side note, it’s always helpful to view these errors in the F12 dev tool.