Does the using of align attribute in img tag becomes obsoleted and should we migrate to another solution?

Please take care about the modern solution to give me the same effect of the following -notice align="absmiddle":
PHP Code:
<h3 style="color:red; font-weight:bold"><img src="images/warning.gif" alt="Warining!" align="absmiddle" style="display:inline" />Login is required!</h3
If there is any online article about this topic, I will be appreciated too.