html when error code example Example: on error html <img src="logo1.jpg" onerror="this.src='error.jpg';" class="posting-logo-img">