Finally, insert it to the document. Using HTML image tag in your code and detailing img src. Create an empty image instance using new Image(). Using HTML image tag in your code and detailing img src. I had not noticed that the HTML5 parsing spec requires that the image tag is mapped to img. In this snippet, we’re going to demonstrate how you can display Base64 images in HTML. src: URL: the url of an image: usemap: #mapname: Defines the image as a client-side image map and used alongwith