[html] Inputting a default image in case the src attribute of an html <img> is not valid?

_x000D_
_x000D_
<img style="background-image: url(image1), url(image2);"></img>                                            
_x000D_
_x000D_
_x000D_

Use background image that let you add multiple images. My case: image1 is the main image, this will get from some place (browser doing a request) image2 is a default local image to show while image1 is being loaded. If image1 returns any kind of error, the user won't see any change and this will be clean for user experience