canvas
<canvas id="CanvasElement" width="100" height="100" style="border:1px solid black;"></canvas>
const canvas = document.getElementById("CanvasElement");
const ctx = canvas.getContext('2d');
<script>
function LabelCorners() {
ctx.strokeStyle="red"
ctx.fillStyle="blue"
ctx.beginPath()
ctx.moveTo(0,0)
ctx.lineTo(1,1)
ctx.fillText("(0,0)", 2,10)
ctx.moveTo(canvas.width-1, canvas.height-1)
ctx.lineTo(canvas.width,canvas.height)
ctx.moveTo(10, canvas.height-10);
ctx.lineTo(canvas.width-10, 10);
let pos = "(" + canvas.width + ", " + canvas.height + ")"
ctx.fillText(pos, canvas.width-50, canvas.height-5)
ctx.stroke()
}
</script>
<button type="button" onClick="LabelCorners()">Label The Corners</button>