Html display alternate image if not found


If original image fails to load, then it is replace by the alternate image.

<html> <body> <div class="image-area" >
<img class="image" src="image11.jpg" alt="Not Found" onerror=this.src="image12.jpg"> </div> </body> </html>

Comments