onError src code example
Example 1: img onerror
<img src="invalid_link"
onerror="this.onerror=null;this.src='https://placeimg.com/200/300/animals';"
>
Example 2: onerror this.src
<img src="logo1.jpg" onerror="this.src='error.jpg';" class="posting-logo-img">