“html se não houver imagem, então texto” Respostas de código

Bootstrap mostra imagem alternativa, se não existir

<img id="currentPhoto" src="https://www.ccrharrow.org/Images/content/953/741209.pg" onerror="this.src='https://www.unesale.com/ProductImages/Large/notfound.png'" alt="">
Yucky Yacare

html se não houver imagem, então texto

<img id="currentPhoto" src="SomeImage.jpg" onerror="this.onerror=null; this.src='Default.jpg'" alt="" width="100" height="120">
Annoying Alligator

Respostas semelhantes a “html se não houver imagem, então texto”

Perguntas semelhantes a “html se não houver imagem, então texto”

Mais respostas relacionadas para “html se não houver imagem, então texto” em HTML

Procure respostas de código populares por idioma

Procurar outros idiomas de código