ctx.font = "50px serif"; ctx.strokeStyle = "green"; ctx.lineWidth = "1" ctx.strokeText("Hello", 20, 50) ctx.fillStyle = "red"; ctx.fillText("World", 80, 120)
<canvas id="canvas_one"></canvas>
canvas { background-color: lightgoldenrodyellow; }
ctx.font = "50px serif"
ctx.strokeStyle = "green"
ctx.lineWidth = "1"
strokeText("text", x, y)
fillStyle = "red"
ctx.fillText("text", x, y)