notes/Line Basic-KFbw44Jj.html
<!DOCTYPE HTML>
<html>
  <head>
  </head>
  <body>
	<canvas id="MyCanvas" width="600" height="300"></canvas>

	<script>

		var canvas = document.getElementById('MyCanvas');
		var context = canvas.getContext('2d');

		context.beginPath();
		context.moveTo(100,30);
		context.lineTo(250,50);
		context.lineWidth = 15;
		context.strokeStyle = "#af5000";
		context.lineCap = 'butt';
		context.stroke();

                context.beginPath();
                context.moveTo(100,50);
                context.lineTo(250,50);
                context.lineWidth = 15;
                context.strokeStyle = "blue";
                context.lineCap = 'butt';
                context.stroke();

	</script>
  </body>
</html>

syntax highlighted by Code2HTML, v. 0.9.1