<html>
<body>
<h1>HTML5 Canvas</h1>
<h2>The lineWidth Property</h2>
<canvas id="myCanvas" width="300" height="150" style="border:1px solid grey"></canvas>
<script>
const c = document.getElementById("myCanvas");
const ctx = c.getContext("2d");
ctx.lineWidth = 10;
// Begin a new Path
ctx.beginPath();
ctx.moveTo(0, 100);
ctx.lineTo(200, 100);
// Draw the Path
ctx.stroke();
</script>
</body>
</html>