<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
<style>
img {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
</style>
</head>
<body>
<h2 style="text-align:center"> Center the image </h2>
<div class="container">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQHPUDLySiyP-VtLYCmtr86QGJArjZ1dHsFiEiTr86qooHQsxY3MO88PESD-hKj4qGIE4Q&usqp=CAU" alt="image">
</div>
</body>
</html>