On the canvas, of course, we can also draw existing images, e.g. Change colour of an image drawn on an HTML5 canvas element. The canvas drawImage() method of the Canvas 2D API is used to draw an image in various ways on a canvas element. Simply saying, with the help of JavaScript and HTML5 canvas element you may render 2D shapes and bitmap images. This can be done as shown in the following code snippet . You can't just draw HTML into a canvas. It's not working for me . Select the entire image. The repeated element can be used to draw/fill rectangles, circles, lines etc. The images on this page show examples of