So I am a beginner in programming, and I am having trouble making my code work. I do not know why hover is not working and would love to find out what my bug is. As stated in the title, I would like to display a small note when hovering over an information icon (like the ones you find next to the input sections on online forms). I can't seem to figure out why my code is not working, but I feel like it must be some obvious error.
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
.image{
height:20px;
width:20px;
padding-bottom: 5px;
}
.info{
visibility: hidden;
display: block;
font-family: 'Roboto', sans-serif;
font-size: 12px;
color:#555555;
background-color:#efefef;
width:235px;
padding: 3px 3px 3px 6px;
}
.image:hover .info{
visibility: visible;
}
</style>
<title>Info Button</title>
</head>
<body>
<img class ="image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Infobox_info_icon.svg/480px-Infobox_info_icon.svg.png" alt=""/>
<div class ="info">
Transcription: Type how your name sounds.<br/> Ex. Julio Santos => Who-le-o San-tos.
</div>
</body>
</html>
Thanks,
B