I am trying to use the below piece of code:
<picture>
<source media="(min-width: 1200px)" srcset="https://example.com/images/abc.jpg?resize=169,169">
<source media="(min-width: 992px)" srcset="https://example.com/images/cde.jpg?resize=132,132">
<img src="index_files/red_1.jpg" alt="Red 1">
</picture>
the problem which I am facing is when abc.jpg or cde.jpg is not available it should show a default image say e.g., default.jpg and not even the red_1.jpg I referred to other similar topic in the website but i didnt get to know how to handle the problem with the help of html.
Whether onerror
could be used in that case, if yes, where and how?