HTML Lesson 32: Base64 Images

  • 4 years ago
http://xoax.net/

Lesson Page:
https://www.xoax.net/html/crs/core/lessons/Lesson32/

HTML Reference Page:
https://xoax.net/html/ref/core/

In this HTML lesson, we demonstrate how to encode images in Base64 and embed them into an image element in an HTML document. Ordinary image elements use a file on the local file system or a file at a remote URL as the source for image data. Base64 encoding allows us to include the data for an image directly in an image element so that the image does not rely on an external resource, like a file that is local or at a remote URL. Base64 uses one of 64 characters to represent 6 bits of data or 64 possible values. A conversion program for creating base64 encodings is available on our lesson page.

Copyright 2020 XoaX.net LLC