html hide image if not found code example
Example: css hide image if not found
<!-- hide image if not find -->
<img src="image.png" onerror="this.style.display='none'"/>
<!-- show image after load -->
<img src="image.png" style="display: none" onload="this.style.display=''">