Is there a way to style an <img>
tag using CSS based on its alt
attribute value?
For example, I have images with ALT values of "DISAPPEAR".
I would like to hide the image when it is hovered over using the following CSS:
img[alt="DISAPPEAR"]:hover
{
display:none;
}
However, it seems like the code above is not working. Can anyone help troubleshoot this issue?