The first image loads, and the second one is broken. We can use the onerror attribute on the image to set a fallback. You ideally want to have the fallback image locally in the file system.

•2m read time•From dev.to
Post cover image
Table of contents
Thank you for reading, and let's connect!
5 Comments

Sort: