vertical-align: baseline;
vertical-align: text-top;
vertical-align: text-bottom;
<h1>The vertical-align property</h1>
<h2>vertical-align: baseline (default)</h2>
<p>An <img class="ex1" src="https://webtutor.dev/images/computer.jpg" width="50" height="30"> image with a default alignment.</p>
<h2>vertical-align: text-top</h2>
<p>An <img class="ex2" src="https://webtutor.dev/images/computer.jpg" width="50" height="30"> image with a text-top alignment.</p>
<h2>vertical-align: text-bottom</h2>
<p>An <img class="ex3" src="https://webtutor.dev/images/computer.jpg" width="50" height="30"> image with a text-bottom alignment.</p>
<h2>vertical-align: sub</h2>
<p>An <img class="ex4" src="https://webtutor.dev/images/computer.jpg" width="50" height="30"> image with a sub alignment.</p>
<h2>vertical-align: sup</h2>
<p>An <img class="ex5" src="https://webtutor.dev/images/computer.jpg" width="50" height="30"> image with a super alignment.</p>