The canvas element allows rendering of 2D shapes and images dynamically using scripting languages like JavaScript. It was initially introduced by Apple in 2004 and later adopted by other browsers in 2005. The canvas element is defined using width and height attributes in HTML and the HTML5 Canvas API is used to develop graphics on the canvas. JavaScript can be used to draw graphs, animations and photo compositions on the <canvas> element.