How to vertically align text next to an image?

Although this seems an easy job for a developer, there are times when we actually search how to do it. This is for those times. There are many ways to do this. But the best way I found is as follows Hope this helps you in your programming endeavor.