Edit This Code:
<!DOCTYPE html>
<html>
<head>
<style>
div {
    background-color: green;
    color: white;
    padding: 25px;
    text-align: center;
}

div:hover {
    background-color: blue;
}

</style>
</head>
<body>

<p>Mouse over the div element below to change its background color:</p>

<div class="mouseover">Mouse Over Me</div>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy