<body onload="draw();">
  <canvas id="canvas" width="500" height="300"></canvas>  
</body>
canvas {
	border: solid black 5px;
	border-radius: 16px;
}
function draw(){
  var canvas = document.getElementById("canvas");
  var ctx = canvas.getContext("2d");  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.