EN
HTML - empty transparent one pixel gif image as Base64 Data URL (1x1 px image)
7
points
In this short article you will find 1x1 px transparent GIF image that you can use as background.
Quick solution (base64 encoded data URL):
data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==
Motication: in some web browsers transparent image is useful when we want to make element transparent.
Practical example
// ONLINE-RUNNER:browser;
<!doctype html>
<html>
<body>
<style>
img {
border: 1px solid silver;
width: 100px;
height: 100px;
}
</style>
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" />
</body>
</html>