My goal is to hide passwords from being visible unless a user hovers directly over them. I've tried using the code below, but the hover effect isn't working as expected - either the password disappears completely or remains visible at all times.
<style>
#pass.a{
visibility:hidden;
}
#pass.a:hover{
visibility:visible;
}
</style>
<table>
<tr>
<td id="pass"><a> Password </a></td>
</tr>
</table>
I'm struggling to understand why this doesn't work properly. Any help would be appreciated!