<!DOCTYPE html>
<style>
div {
  position: relative;
}

img {
  position: absolute;
  top: 0px;
  left: 0px;
}
</style>
<body>
<div>
  <br>
   Text should be hidden by red.
  <a href="#"><img src="./resources/rectangle-red-200x100.png"></a>
</div>
</body>
