emptygif
Langue: Français

Tous les langages et frameworks

HTML <img> with a data: URI HTML

Un extrait HTML pour HTML <img> with a data: URI qui répond aux requêtes sur /pixel.gif avec le GIF vide, décodé une seule fois au démarrage.

HTML <img> with a data: URI HTML

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

Nous avons exécuté cet extrait et comparé les octets qu’il a renvoyés.

Site officiel: HTML <img> with a data: URI

Autres extraits en HTML