How to apply border on image rollover using css?


I have a dynamic textfield that is html formatted and loads text from an XML file. On the XML file I have the following image that contains a link:

<a href="link here"><img src="image.png"/></a>

How can I add border on image hover using CSS?
I tried several things but none worked.
Is this even possible?