What is the canvas element in HTML5 code example

Example 1: javascript canvas

<canvas id="canvas"></canvas>
<script>

	var canvas = document.getElementById('canvas');
    var ctx = canvas.getContext('2d');
  
	ctx.beginPath();
	ctx.rect(x, y, width, height);
  	ctx.fillStyle = 'limegreen';
  	ctx.fill();
  
  	ctx.beginPath();
  	ctx.arc(x, y, radius, startAngle, endAngle, counterClockWise(optional));
  	ctx.strokeStyle = 'black';
  	ctx.stroke();

</script>

Example 2: javascript canvas

#this code creates a circle within a canvas that must be created in HTML
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.beginPath();
ctx.arc(95, 50, 40, 0, 2 * Math.PI);
ctx.stroke();

Example 3: canvas tag html

//HTML
<canvas id="canv"></canvas>

//Javascript
var canvas = document.getElementById("canv");
canvas.width = canvas.height = 100;
var ctx = canvas.getContext("2d");
ctx.fillStyle = "red";
ctx.fillRect(10, 10, 80, 80);