This is same question as this, but for lwc.

What I've tried so far is

<object data="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" type="image/png">
    <img src={it.value.img} alt={it.value.alt} style="max-height: 16px;" />

To no avail.

1 Answer 1


I had it backwards, is where requested image href should be and fallback is the img tag inside.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .