Edit This Code:
<!DOCTYPE html>
<html>
<head>
<style>
div {
    background-color: yellow;
    padding: 20px;
    display: none;
}

    
span:hover + div {
    display: block;
}

</style>
</head>
<body>

<span>Hover over me!</span>
<div class="example">I will show on hover</div>

</body>
</html>


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