I have below code in html page:
in css page the below code:
If its an anchor tag you can also use
A:focus img{border: 2px solid blue;}