emptygif
Language: English

All languages and frameworks

HTML <img> with a data: URI HTML

A HTML snippet for HTML <img> with a data: URI that answers requests for /pixel.gif with the empty GIF, decoded once at startup.

HTML <img> with a data: URI HTML

File
index.html
<!-- Inline transparent spacer / placeholder: no extra HTTP request -->
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width="1" height="1" alt="">

We ran this snippet and compared the bytes it returned.

Official site: HTML <img> with a data: URI

More in HTML