Set 90 Practical Question

⭐ Q40 – CSS: Create a Circle That Turns Yellow on Hover

Example Code (Read Only):


<!DOCTYPE html>
<html>
<head>
<title>Circle Example</title>

<style>
.circle{
    width: 150px;
    height: 150px;
    background-color: red;
    border-radius: 50%;
    transition: 0.5s;
}

.circle:hover{
    background-color: yellow;
}
</style>

</head>
<body>

<div class="circle"></div>

</body>
</html>

Write Your HTML / JavaScript Code