Alright, I've defined a custom <ins>
tag with the following CSS:
ins{
color:blue;
font-weight:500;
text-decoration:none;
}
ins:hover{
cursor: pointer;
cursor: hand;
text-decoration:underline;
}
I'd like to add a feature where when a user hovers over text inside an <ins>
tag, a small tooltip appears saying "This is inserted text". To achieve this, I thought of modifying the ins:hover
like so:
ins:hover{
cursor: pointer;
cursor: hand;
text-decoration:underline;
tooltip:"This is inserted text";
}
Is it possible to implement this functionality?
If not, are there any basic HTML tags that inherently support tooltip popups without requiring attributes?
Note: By basic tag, I mean tags that can function without additional attributes for security purposes.