Last active
June 19, 2020 13:58
-
-
Save clairtonluz/284650111cd694a738eaf0da711c974c to your computer and use it in GitHub Desktop.
Imagem de fallback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- example 1 --> | |
<img src="/imagem_principal.png" onerror="this.src='/imagem_de_fallback.png';this.onerror='';"/> | |
<!-- example 2 --> | |
<object data="/imagem_principal.png" type="image/png"> | |
<img src="/imagem_de_fallback.png"/> | |
</object> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment