img alternate source if not found code example
Example: alternative image in img tag
<img src="https://imageurl.com" alt="Image not found" onerror="this.src='https://alternativeimageurl.com'" />
<img src="https://imageurl.com" alt="Image not found" onerror="this.src='https://alternativeimageurl.com'" />