SVG Image with img tag and JavaScript for unsupported browser.

/ Published in: HTML
Save to your folder(s)

Using SVG on your website today, supported on all browsers.

Copy this code and paste it in your HTML
  1. <img src="images/logo.svg"
  2. onerror="this.removeAttribute('onerror');
  3. this.src='images/logo.png'"
  4. alt="Kreaninw Studio Logo"
  5. />

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.