Share graphic for “Embedding Graphics in HTML” by Joe Levi

Embedding Graphics in HTML

You've seen images on websites before, but what about images in the html code itself? No, I'm not talking about your typical reference to an image, but actually sticking the image (base64 encoded) into the page itself. Here's what the code looks like to do it (linefeeds have been entered to facilitate viewing on the page).

Example image embedded directly in the HTML as base64 data

← All articles